문제

I am having problems building a maven 3 pom:

[seam] $ /usr/lib/jvm/java-6-openjdk/bin/java -cp /home/walterjwhite/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.372.jar:/opt/apache/maven/3.0.beta.1/boot/plexus-classworlds-2.2.3.jar hudson.maven.agent.Main /opt/apache/maven/3.0.beta.1 /opt/apache/tomcat/6.0.29/webapps/hudson/WEB-INF/lib/remoting-1.372.jar /home/walterjwhite/.hudson/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.372.jar 37568 
Exception in thread "main" java.lang.NoSuchMethodError: org.codehaus.classworlds.Launcher.getWorld()Lorg/codehaus/classworlds/ClassWorld;
 at hudson.maven.agent.Main.main(Main.java:115)
 at hudson.maven.agent.Main.main(Main.java:62)
ERROR: Failed to launch Maven. Exit code = 1 Finished: FAILURE

I can build this just fine locally, but Hudson is doing its own thing. I read that Hudson will support Maven 3, but what can I do now?

도움이 되었습니까?

해결책

This looks like HUDSON-4988 which is not fixed. Use Maven 2 with Hudson for now.

다른 팁

Even if you can't execute it as a maven build in hudson, you could still execute Maven 3 as a shell task in a freestyle build. This is not a best practice, but a workaround if you can't build otherwise.

There is a known bug with Maven 3 and Hudson. Olivier Lamy put out a wonderful fix for us as a Christmas present:

Hudson War 1.389

This will allow you to use Maven 3 with Hudson. I have 0 errors at this point and it was easy to set up.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top