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

fastutil conflicts in dependencies #23

Closed
lintool opened this issue Aug 16, 2014 · 3 comments
Closed

fastutil conflicts in dependencies #23

lintool opened this issue Aug 16, 2014 · 3 comments

Comments

@lintool
Copy link
Contributor

lintool commented Aug 16, 2014

I'm using artifact 1.1.3 as a dependency, getting some fastutil class conflicts. mvn dependency:tree gives the following snippet:

[INFO] +- org.netpreserve.commons:webarchive-commons:jar:1.1.3:compile
[INFO] |  +- org.json:json:jar:20131018:compile
[INFO] |  +- commons-httpclient:commons-httpclient:jar:3.1:compile
[INFO] |  +- commons-io:commons-io:jar:2.4:compile
[INFO] |  +- org.gnu.inet:libidn:jar:1.15:compile
[INFO] |  +- it.unimi.dsi:dsiutils:jar:2.0.12:compile
[INFO] |  |  +- it.unimi.dsi:fastutil:jar:6.5.2:compile
[INFO] |  |  +- com.martiansoftware:jsap:jar:2.1:compile
[INFO] |  |  +- commons-configuration:commons-configuration:jar:1.8:compile
[INFO] |  |  +- commons-collections:commons-collections:jar:3.2.1:compile
[INFO] |  |  \- org.apache.commons:commons-math3:jar:3.1.1:compile
[INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.3:compile
[INFO] |  \- fastutil:fastutil:jar:5.0.7:compile

As you can see, we're pulling in both fastutil 5.0.7 and 6.5.2, but since they have different groupIds, mvn doesn't exactly know how to resolve. The two different versions have slightly different APIs, so there's a potential here for nasty bugs.

@lintool
Copy link
Contributor Author

lintool commented Aug 16, 2014

Sent pull request. Proposed fix is to remove 5.0.7 version as direct dependency in POM.
#24

anjackson added a commit that referenced this issue Aug 20, 2014
Proposed fix to issue #23: fastutil conflicts in dependencies
@johnerikhalse
Copy link
Contributor

Closing this as the fix is in the 1.1.4 release.

@nclarkekb
Copy link
Contributor

A dependency management section in the pom could also have solved an issues with multiple versions.

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

No branches or pull requests

3 participants