Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

由于snakeyaml版本较低,和jackson-databind一起用会报错Could not find snakeyaml-2.0-a… #760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dianbaiyizhong
Copy link

Could not find snakeyaml-2.0-android.jar (org.yaml:snakeyaml:2.0).
Searched in the following locations:
https://maven.aliyun.com/repository/public/org/yaml/snakeyaml/2.0/snakeyaml-2.0-android.jar

Possible solution:

Copy link

@luisangelorjr luisangelorjr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have the same problem here

@bodiam
Copy link

bodiam commented Oct 10, 2023

Please use https://github.com/datafaker-net/datafaker instead

@luisangelorjr
Copy link

Yes @bodiam , before your reply I already using DataFaker.
Thanks : )

@kaperusov
Copy link

kaperusov commented Feb 7, 2024

You can fix this by explicitly specifying a classifier for snakeyaml:

    testImplementation 'org.yaml:snakeyaml:1.26:android'
    testImplementation 'com.github.javafaker:javafaker:1.0.2'

But that leaves a problem with the old version of snakeyaml and its vulnerabilities:
-> https://mvnrepository.com/artifact/org.yaml/snakeyaml/1.26

Not sure why the author needed this classifier in pom.xml:

        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>1.26</version>
            <classifier>android</classifier>
        </dependency>

The java-faker builds fine and passes all tests with this dependency:

        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>2.2</version>
        </dependency>

But apparently the project is dead. The author hasn't accepted Pull Requests for a long time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants