Giter Club home page Giter Club logo

Comments (6)

Ajneb97 avatar Ajneb97 commented on June 14, 2024 1

Thx it is fixed now.

from simple-yaml.

Carleslc avatar Carleslc commented on June 14, 2024

Not a bug. You have a dependency clash with snakeyaml (required in both Simple-YAML and Velocity). Velocity uses an older version of snakeyaml than the required in Simple-YAML, and maven is selecting the older version probably because finds it first in the dependency tree. I don't know if you have the latest version of Velocity and if they have upgraded the snakeyaml to at least version 1.30.

Check issue #57 for help on how to solve the version clash.

from simple-yaml.

Ajneb97 avatar Ajneb97 commented on June 14, 2024

I fixed it, but I had to add the snakeyaml 1.30 dependency manually to maven, because another error appeared. It seems Simple-YAML is not using the latest version.
imagen

from simple-yaml.

Carleslc avatar Carleslc commented on June 14, 2024

Simple-Yaml 1.8 uses snakeyaml 1.30, which is the latest version of snakeyaml. Velocity 3.1.1 uses snakeyaml 1.26. Adding the snakeyaml 1.30 dependency in your pom along with Simple-Yaml 1.8 should be enough to resolve the version conflict.

The new error seems the same problem anyway, due to the same version clash of snakeyaml. Both setIndentWithIndicator and setProcessComments methods were introduced in snakeyaml 1.28. If those methods are not found that means that maven is still selecting the wrong version.

I see you've done some relocation, maybe you have both versions around and still conflicting. Check it with mvn dependency:tree -Dverbose

Try the other options provided in the issue #57 (dependencyManagement and snakeyaml exclusion inside the Velocity dependency tag).

from simple-yaml.

Carleslc avatar Carleslc commented on June 14, 2024

What configuration did resolve the issue for you? Exclusion? Or was something related to relocation?

from simple-yaml.

Ajneb97 avatar Ajneb97 commented on June 14, 2024

Relocation and I had to manually add snakeyaml 1.30 to maven
<dependency> <groupId>org.yaml</groupId> <artifactId>snakeyaml</artifactId> <version>1.30</version> </dependency>

from simple-yaml.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.