Maven 3.1 can not mvn install?
vongosling opened this issue · comments
Ubuntu 12 clean install nifty using maven 3.1,errors occur:
Caused by: java.lang.ClassNotFoundException: org.sonatype.aether.version.VersionConstraint
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230)
... 64 more
I found the fix method just update shade plugin to 2.1(https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound),can anyone to fix it in git repository?
@andrewcox When do you plan to support maven 3.1 in swift/nifty? I hit the same problem when trying to build.
Yes, the amount of breakage when using maven 3.1 is mindboggling. As @l3fang pointed out, the correct fix is to do a round of version updates for the plugins in the base pom. I am planning to do that anyway later this week.
For now, the recommended fix is to use maven 3.0.5. Sorry.
workaround is update shade plugin version,just as https://cwiki.apache.org/confluence/display/MAVEN/AetherClassNotFound shows,hope helpful for someone