-
Notifications
You must be signed in to change notification settings - Fork 9
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
Conflicting versions of transitive dependencies on the application classpath #13
Comments
Or at least provide a way to pick one version. |
Capsule relies entirely on Aether for dependencies resolution and it already specifies Maven's nearest-wins conflict resolution strategy so theoretically the latest version should be selected already. Can you share a debug session that shows otherwise and/or (even better) a test case for this behavior? |
See https://github.com/puniverse/capsule-maven/blob/master/src/main/java/MavenCapsule.java#L171 |
The resolution mechanism performs If you can share an example reproducing the issue this will make it easier to identify it and fix it if needed (of course a PR with a fix proposal would be even better). Thanks! |
Setup https://github.com/circlespainter/capsule-maven-13 that should correctly track down this behavior to Aether and got in touch on the mailing list. |
Not getting feedback, reported as a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=490962 |
The same happens when upgrading Aether to |
Considering https://projects.eclipse.org/projects/technology.aether/reviews/termination-review, also written to the Maven mailing list about it. |
How can I do it? I'm using the com.github.chrischristo:capsule-maven-plugin but I can't specify the version of the capsule-maven |
I've just asked about chrisdchristo/capsule-maven-plugin#49 for the future but in the meanwhile I've just published a Capsule |
Hi @gzsombor, @circlespainter you can already set the capsule maven version in the plugin. The plugin looks for two variables defined in the pom.xml:
This was done in a recent release, so please check you're using the latest version of the plugin. |
@chrischristo Great, thanks! |
Capsule-maven puts all transitive dependencies on the classpath even they are same but with different version. On the other hand maven selects only latest one. This leads to the runtime errors (Eg NoSuchMethodError etc).
Please select latest version among the transitive dependencies.
The text was updated successfully, but these errors were encountered: