versioneye/versioneye_maven_plugin

Version conflicts for aether components

ascheman opened this issue · 4 comments

Running mvn versioneye:list leads to the following stack trace:

[INFO] ------------------------------------------------------------------------
[INFO] Building versioneye-maven-plugin 2.0.1
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- versioneye-maven-plugin:2.0.1:list (default-cli) @ versioneye-maven-plugin ---
[WARNING] Error injecting: com.versioneye.ListMojo
java.lang.NoClassDefFoundError: org/sonatype/aether/graph/DependencyVisitor
        at java.lang.Class.getDeclaredConstructors0(Native Method)
        at java.lang.Class.privateGetDeclaredConstructors(Class.java:2493)
        at java.lang.Class.getDeclaredConstructors(Class.java:1901)
...
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.graph.DependencyVisitor
        at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:259)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:235)
        at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:227)
        ... 54 more
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

Running the command with -X shows that the used newer aether-api module (org.sonatype.aether:aether-api:1.1.13) is excluded:

...
[DEBUG]   Excluded: org.sonatype.aether:aether-api:jar:1.13.1
...

A solution might be to switch back to the old eclipse aether modules?

reiz commented

Which version of Maven are you using?
As far as I know this depends on the installed mvn version.

Same here. Maven 3.2.1 installed via Homebrew, JDK 1.7-u14, OS X.

reiz commented

@ascheman @jirutka Hi guys. In the last days I was busy with VersionEye Enterprise. The first installation is running at a clients intranet! Wohooo :-) The next 2 days I'm at the AWS Summit & Geek2Geek. I can merge the pull request next weekend and do some extra work. If you don't see any progress on this ticket on Sunday then poke me on Twitter. I like reminders ;)

Hi Robert,

thanks for the feed back, but "no stress" ... I was not even able to check for Maven 3.1.1 vs. 3.2.1 since I raised the issue. Thanks to jirutka for backing this up! Maybe it is a "MacOS X only" problem? I installed Maven from the binary download (but still have 3.1.1 running here). However, today I am still at JAX then go for a private trip to Hamburg. So I will not look into this before the middle of next week.

Cheers,
Gerd

On 15.05.2014, at 00:03, Robert Reiz notifications@github.com wrote:

@ascheman @jirutka Hi guys. In the last days I was busy with VersionEye Enterprise. The first installation is running at a clients intranet! Wohooo :-) The next 2 days I'm at the AWS Summit & Geek2Geek. I can merge the pull request next weekend and do some extra work. If you don't see any progress on this ticket on Sunday then poke me on Twitter. I like reminders ;)


Reply to this email directly or view it on GitHub.

Gerd Aschemann --- Veröffentlichen heißt Verändern (Carmen Thomas)
+49/173/3264070 -- gerd@aschemann.net -- http://www.aschemann.net