[Issue 4751] New - Hudson can't execute pom.xml with option "-r".

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4751] New - Hudson can't execute pom.xml with option "-r".

jeinbi
https://hudson.dev.java.net/issues/show_bug.cgi?id=4751
                 Issue #|4751
                 Summary|Hudson can't execute pom.xml with option "-r".
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|maven2
             Assigned to|issues@hudson
             Reported by|jeinbi






------- Additional comments from [hidden email] Mon Nov  2 10:07:16 +0000 2009 -------
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=
{com.tys.test.maven:MavenDepTest=
[hudson.maven.reporters.BuildInfoRecorder@41825e,
hudson.maven.reporters.MavenSiteArchiver@d622e5,
hudson.maven.reporters.MavenJavadocArchiver@8d1800,
hudson.maven.reporters.MavenArtifactArchiver@122e0b3,
hudson.maven.reporters.SurefireArchiver@ce41cc,
hudson.maven.reporters.MavenFingerprinter@141cd01,
hudson.plugins.cobertura.MavenCoberturaPublisher@fa3ce5]} 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={com.tys.test.maven:MavenDepTest=
[hudson.maven.reporters.BuildInfoRecorder@41825e,
hudson.maven.reporters.MavenSiteArchiver@d622e5,
hudson.maven.reporters.MavenJavadocArchiver@8d1800,
hudson.maven.reporters.MavenArtifactArchiver@122e0b3,
hudson.maven.reporters.SurefireArchiver@ce41cc,
hudson.maven.reporters.MavenFingerprinter@141cd01,
hudson.plugins.cobertura.MavenCoberturaPublisher@fa3ce5]} 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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4751] Hudson can't execute pom.xml with option "-r".

Kohsuke Kawaguchi
Administrator
https://hudson.dev.java.net/issues/show_bug.cgi?id=4751






------- Additional comments from [hidden email] Tue Nov  3 01:21:59 +0000 2009 -------
Note to myself: the -r option is "Dynamically build reactor from subdirectories"
-- presumably list immediate subdirectories to look for pom.xml?

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4751] Hudson can't execute pom.xml with option "-r".

jeinbi
In reply to this post by jeinbi
https://hudson.dev.java.net/issues/show_bug.cgi?id=4751






------- Additional comments from [hidden email] Wed Nov  4 00:20:31 +0000 2009 -------
If the <module> elements are described in pom.xml such as below, Hudson execute
my project without error.

<modules>
  <module>Module1</module>
  <module>Module2</module>
  <module>Module3</module>
  <module>Module4</module>
</modules>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Issue 4751] Hudson can't execute pom.xml with option "-r".

jeinbi
In reply to this post by jeinbi
https://hudson.dev.java.net/issues/show_bug.cgi?id=4751






------- Additional comments from [hidden email] Wed Nov  4 00:32:04 +0000 2009 -------
My project is created by "Build a maven2 project".
The other side, I make new project by "Build a free-style software project".
This project has four sub modules and no <module> elements in pom.xml, too.
But Hudson can execute this project without error.
I think that a free-style Hudson project execute a command "mvn" directly.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]