Hudson - Maven 3 - Impossible to Build

I am having problems creating 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 it just fine in place, but Hudson is doing his job. I read that Hudson will support Maven 3, but what can I do now?

+7
maven-3 hudson
source share
3 answers

It looks like a HUDSON-4988 , which is not fixed. Now use Maven 2 with Hudson.

+5
source share

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

+3
source share

Known bug with Maven 3 and Hudson. Olivier Lamy released a wonderful solution for us as a Christmas present:

Hudson war 1.389

This will allow you to use Maven 3 with Hudson. At the moment, I have 0 errors, and it was easy to configure.

+3
source share

All Articles