开发者

Hudson - Maven 3 - unable to build

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜