-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Platform: All, OS: All
Hi~
My maven project has root pom.xml which consists of four sub modules such as
below directory structure.
- MavenDepTest
- pom.xml
- Module1
- src
- pom.xml
- Module2
- src
- pom.xml
- Module3
- src
- pom.xml
- Module4
- src
- pom.xml
The root pom.xml is defined with no <module> element. So, I execute a
command "mvn --reactor clean package" directly, then it's completed with no
error.
But, Hudson can't execute this environment.
I don't know why occuring below message.
My Maven version is 2.2.1 and Hudson is 1.330.
----- Console Output -----
Parsing POMs
[MavenDepTest] $ "C:\Program Files\Java\jdk1.6.0_16/bin/java" -cp "C:\Documents
and Settings\Default User\.hudson\plugins\maven-plugin\WEB-INF\lib\maven-agent-
1.330.jar;C:\Program Files\Java\apache-maven-2.2.1\boot\classworlds-1.1.jar"
hudson.maven.agent.Main "C:\Program Files\Java\apache-maven-2.2.1" "C:\Program
Files\Apache Software Foundation\Tomcat 5.5\webapps\hudson\WEB-INF\lib\remoting-
1.330.jar" "C:\Documents and Settings\Default User\.hudson\plugins\maven-
plugin\WEB-INF\lib\maven-interceptor-1.330.jar" 29058 "C:\Documents and
Settings\Default User\.hudson\plugins\maven-plugin\WEB-INF\lib\maven2.1-
interceptor-1.2.jar"
<===[HUDSON REMOTING CAPACITY]===>channel started
Executing Maven: -B -f C:\Documents and Settings\Default
User\.hudson\jobs\test\workspace\MavenDepTest\pom.xml -r clean package
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Module1
[INFO] Module2
[INFO] Module3
[INFO] Module4
[INFO] ------------------------------------------------------------------------
[INFO] Building Module1
[INFO] task-segment: [clean, package]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] reporters.get(com.tys.test.maven:Module1)==null. reporters=
proxies=
{com.tys.test.maven:MavenDepTest=hudson.maven.MavenModuleSetBuild$Builder$Filter Impl@b41541}[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.AssertionError: reporters.get(com.tys.test.maven:Module1)==null.
reporters=
proxies=
{com.tys.test.maven:MavenDepTest=hudson.maven.MavenModuleSetBuild$Builder$Filter Impl@b41541} at hudson.maven.MavenModuleSetBuild$Builder.postModule
(MavenModuleSetBuild.java:718)
at hudson.maven.MavenBuilder$Adapter.fireLeaveModule
(MavenBuilder.java:304)
at hudson.maven.MavenBuilder$Adapter.postBuild(MavenBuilder.java:262)
at org.apache.maven.lifecycle.LifecycleExecutorInterceptor.execute
(LifecycleExecutorInterceptor.java:68)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at hudson.maven.agent.Main.launch(Main.java:165)
at hudson.maven.MavenBuilder.call(MavenBuilder.java:159)
at hudson.maven.MavenModuleSetBuild$Builder.call
(MavenModuleSetBuild.java:688)
at hudson.maven.MavenModuleSetBuild$Builder.call
(MavenModuleSetBuild.java:634)
at hudson.remoting.UserRequest.perform(UserRequest.java:104)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:244)
at java.util.concurrent.Executors$RunnableAdapter.call
(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask
(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Nov 02 18:46:09 KST 2009
[INFO] Final Memory: 3M/7M
[INFO] ------------------------------------------------------------------------
channel stopped
Finished: FAILURE
Note to myself: the -r option is "Dynamically build reactor from subdirectories"
– presumably list immediate subdirectories to look for pom.xml?