Maven2 build - cannot start submodules build

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Maven2 build - cannot start submodules build

Sergio Fernandes
Hi,
 
I'm trying to use the Maven2 build in a project that has many modules. After the first checkout, Hudson parses the POM and discover all my modules, and at the end triggers the first module, as expected:
 
 
At revision 90284
Parsing POMs
Discovered a new module com.sknt.xip:xip XIP
(...)
Discovered a new module com.sknt.xip:XIPInstaller XIPInstaller
(...)
Triggering com.sknt.xip:xip
finished: SUCCESS
 
But when it starts the module build, the console shows this error:
 
started
[] $ E:\apps\jdk1.5.0_07\jre\bin\java -cp E:\apps\apache-tomcat-6.0.10\webapps\hudson\WEB-INF\lib\maven-agent-1.85.jar;E:\apps\maven-2.0.4\core\boot\classworlds-1.1.jar hudson.maven.agent.Main E:\apps\maven-2.0.4 E:\apps\apache-tomcat-6.0.10\webapps\hudson\WEB-INF\lib\hudson-core-1.85.jar E:\apps\apache-tomcat-6.0.10\webapps\hudson\WEB-INF\lib\maven-interceptor-1.85.jar
Exception in thread "main" java.lang.NoClassDefFoundError: edu/emory/mathcs/backport/java/util/concurrent/Executor
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
	at java.lang.Class.getMethod0(Class.java:2611)
	at java.lang.Class.getMethod(Class.java:1579)
	at hudson.maven.agent.Main.main(Main.java:57)
	at hudson.maven.agent.Main.main(Main.java:30)
FATAL: unexpected stream termination
java.io.EOFException: unexpected stream termination
	at hudson.remoting.Channel.<init>(Channel.java:142)
	at hudson.Launcher$LocalLauncher.launchChannel(Launcher.java:166)
	at hudson.maven.MavenBuild$RunnerImpl.doRun(MavenBuild.java:198)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:117)
	at hudson.model.Run.run(Run.java:549)
	at hudson.maven.MavenBuild.run(MavenBuild.java:98)
	at hudson.model.Executor.run(Executor.java:61)
The problem doesn't seem to be in my POM. If I open a prompt in the workspace directory and run manually "mvn clean install", everything works fine and Maven builds all modules.
My config:
Maven version: Maven2
Root POM: pom.xml
Golas: clean install
Am I doing something wrong? 
 
Best regards,
 
----------------------------------------------------------
Sergio Fernandes
Software Engineering
[hidden email]
 
Sakonnet Technology
Centro Empresarial Mourisco
Praia de Botafogo 501 1°Andar
Bloco A - Torre Pão de Açúcar
22250-040 - Rio de Janeiro, RJ Brazil

+55 (21) 2586 6072 direct
+55 (21) 8272 7193 mobile
+55 (21) 2586 6001 fax