Comments (6)
Thx it is fixed now.
from simple-yaml.
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.
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.
from simple-yaml.
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.
What configuration did resolve the issue for you? Exclusion? Or was something related to relocation?
from simple-yaml.
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)
- Load YamlConfiguration Error HOT 1
- Key setting with single quote despite no special characters. HOT 10
- Header being duplicated when there is no comment on the root key HOT 3
- There is a bug when i set the list HOT 2
- Invalid configuration caused by the library itself? HOT 3
- addDefault doesn't work since 1.8 if file contains only defaults HOT 5
- Enhancement/Feature Request - addDefault() enforce quote style HOT 3
- Bump up of SnakeYML to 1.31. HOT 1
- (Velocity dependency clash) java.lang.NoSuchMethodError HOT 13
- java.lang.NoSuchMethodError: 'void org.yaml.snakeyaml.DumperOptions.setIndentWithIndicator(boolean)' HOT 3
- Could not find artifact me.carleslc.Simple-YAML:Simple-Configuration:jar:1.8.3 in central (https://repo1.maven.org/maven2) HOT 6
- [Question] String length limit! Can it be disabled? HOT 3
- Update snakeyaml version to 2.0 HOT 1
- The method for saving the config is not working. HOT 2
- ConfigurationSection#addDefault changes values if present HOT 2
- Custom Domain Jitpack Deployment HOT 5
- String List placement inside yaml HOT 10
- YamlFile#load & #loadWithComments behave different on double quote value HOT 6
- Memory Leak Problem HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-yaml.