Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11964

[Regression] Cannot build a single module in a Maven multi-module job with Maven 3

    Details

    • Similar Issues:

      Description

      We have upgraded from Jenkins 1.399 to Jenkins 1.441. Our Maven jobs are now run by Maven 3.0.3 instead of Maven 2.2.1.

      When a job is a Maven multi-module project, it is possible to run a single submodule (on the job page, click on "Modules", then start the build for a given submodule). It was working fine with our old instance but now the build fails with status "ABORTED".

      See thread: http://jenkins.361315.n4.nabble.com/Build-Maven-submodule-gt-ABORTED-td4128116.html

      Is it possible to reintroduce this feature?

      Thanks

        Attachments

          Activity

          Hide
          oldelvet Richard Mortimer added a comment -

          There was a bug (JENKINS-10831) back in 1.427 that caused a failure but that had does not look like your issue. I just double checked on my system on 1.441 and that does build a single submodule correctly.

          However I just noticed that I was using maven 2.2.1 for builds (oops thought I had changed to 3.0.3!) and if I switch to 3.0.3 I get the same aborted error as you.

          Started by user Richard Mortimer
          Building remotely on bishop
          $ /opt/jenkins/slave/tools/JDK_6/bin/java -Xmx1024m -XX:MaxPermSize=512m -cp /opt/jenkins/slave/maven3-agent.jar:/opt/jenkins/slave/tools/Maven_3.0.3/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/jenkins/slave/tools/Maven_3.0.3 /usr/share/jenkslav/slave.jar /opt/jenkins/slave/maven3-interceptor.jar 56773
          <===[JENKINS REMOTING CAPACITY]===>channel started
          Finished: ABORTED
          

          The jenkins logfile has the following error in it.

          02-Dec-2011 13:03:56 hudson.model.Run run
          INFO: tcserv » tcear #843 main build action completed: ABORTED
          02-Dec-2011 13:03:56 hudson.remoting.Channel$ReaderThread run
          SEVERE: I/O error in channel Channel to Maven [/opt/jenkins/slave/tools/JDK_6/bin/java, -Xmx1024m, -XX:MaxPermSize=512m, -cp, /opt/jenkins/slave/maven3-agent.jar:/opt/jenkins/slave/tools/Maven_3.0.3/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /opt/jenkins/slave/tools/Maven_3.0.3, /usr/share/jenkslav/slave.jar, /opt/jenkins/slave/maven3-interceptor.jar, 56773]
          java.io.IOException: Unexpected termination of the channel
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115)
          Caused by: java.io.EOFException
                  at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570)
                  at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314)
                  at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368)
                  at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109)
          
          Show
          oldelvet Richard Mortimer added a comment - There was a bug ( JENKINS-10831 ) back in 1.427 that caused a failure but that had does not look like your issue. I just double checked on my system on 1.441 and that does build a single submodule correctly. However I just noticed that I was using maven 2.2.1 for builds (oops thought I had changed to 3.0.3!) and if I switch to 3.0.3 I get the same aborted error as you. Started by user Richard Mortimer Building remotely on bishop $ /opt/jenkins/slave/tools/JDK_6/bin/java -Xmx1024m -XX:MaxPermSize=512m -cp /opt/jenkins/slave/maven3-agent.jar:/opt/jenkins/slave/tools/Maven_3.0.3/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /opt/jenkins/slave/tools/Maven_3.0.3 /usr/share/jenkslav/slave.jar /opt/jenkins/slave/maven3-interceptor.jar 56773 <===[JENKINS REMOTING CAPACITY]===>channel started Finished: ABORTED The jenkins logfile has the following error in it. 02-Dec-2011 13:03:56 hudson.model.Run run INFO: tcserv » tcear #843 main build action completed: ABORTED 02-Dec-2011 13:03:56 hudson.remoting.Channel$ReaderThread run SEVERE: I/O error in channel Channel to Maven [/opt/jenkins/slave/tools/JDK_6/bin/java, -Xmx1024m, -XX:MaxPermSize=512m, -cp, /opt/jenkins/slave/maven3-agent.jar:/opt/jenkins/slave/tools/Maven_3.0.3/boot/plexus-classworlds-2.4.jar, org.jvnet.hudson.maven3.agent.Maven3Main, /opt/jenkins/slave/tools/Maven_3.0.3, /usr/share/jenkslav/slave.jar, /opt/jenkins/slave/maven3-interceptor.jar, 56773] java.io.IOException: Unexpected termination of the channel at hudson.remoting.Channel$ReaderThread.run(Channel.java:1115) Caused by: java.io.EOFException at java.io.ObjectInputStream$BlockDataInputStream.peekByte(ObjectInputStream.java:2570) at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1314) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:368) at hudson.remoting.Channel$ReaderThread.run(Channel.java:1109)
          Hide
          kutzi kutzi added a comment -

          Building single modules with Maven 3 has never worked, as it wasn't implemented since the beginning of the Maven 3 support.

          Show
          kutzi kutzi added a comment - Building single modules with Maven 3 has never worked, as it wasn't implemented since the beginning of the Maven 3 support.
          Hide
          lcorneliussen Lars Corneliussen added a comment -

          How much work would it be?

          Show
          lcorneliussen Lars Corneliussen added a comment - How much work would it be?
          Hide
          sune Sune Wettersteen added a comment -

          Is anyone actively looking into this?
          It is one of the stumbling blocks for us in order to upgrade to maven 3.

          Any feedback is appreciated.

          Show
          sune Sune Wettersteen added a comment - Is anyone actively looking into this? It is one of the stumbling blocks for us in order to upgrade to maven 3. Any feedback is appreciated.
          Hide
          rockymm Rade Martinović added a comment -

          Is maven 3 support planned?

          Show
          rockymm Rade Martinović added a comment - Is maven 3 support planned?
          Hide
          rockymm Rade Martinović added a comment -

          Any news on this?

          Show
          rockymm Rade Martinović added a comment - Any news on this?
          Hide
          aelmadho Ahmed El-Madhoun added a comment -

          Hello,

          Is there an update on this? This is a critical feature for the maven users, is there an ETA on adding this feature in?

          Show
          aelmadho Ahmed El-Madhoun added a comment - Hello, Is there an update on this? This is a critical feature for the maven users, is there an ETA on adding this feature in?
          Hide
          rmarpozo Ruben Martin Pozo added a comment -

          Hi everyone. I registered this issue in the "proposing" section on FreedomSponsors. This means that if you need this issue that bad, you can go to http://www.freedomsponsors.org/core/issue/245/regression-cannot-build-a-single-module-in-a-maven-multi-module-job-with-maven-3 and offer a few bucks for it.

          Show
          rmarpozo Ruben Martin Pozo added a comment - Hi everyone. I registered this issue in the "proposing" section on FreedomSponsors. This means that if you need this issue that bad, you can go to http://www.freedomsponsors.org/core/issue/245/regression-cannot-build-a-single-module-in-a-maven-multi-module-job-with-maven-3 and offer a few bucks for it.
          Hide
          madamcin Mark Adamcin added a comment -

          I've submitted a pull request to resolve this issue.

          https://github.com/jenkinsci/maven-plugin/pull/9

          Show
          madamcin Mark Adamcin added a comment - I've submitted a pull request to resolve this issue. https://github.com/jenkinsci/maven-plugin/pull/9
          Hide
          madamcin Mark Adamcin added a comment - - edited

          That last pull request didn't want to build in cloudbees, so I applied my changes to a fresh branch and submitted a new pull request, which built successfully.

          https://github.com/jenkinsci/maven-plugin/pull/10

          https://jenkins.ci.cloudbees.com/job/plugins/job/maven-plugin/36/

          Show
          madamcin Mark Adamcin added a comment - - edited That last pull request didn't want to build in cloudbees, so I applied my changes to a fresh branch and submitted a new pull request, which built successfully. https://github.com/jenkinsci/maven-plugin/pull/10 https://jenkins.ci.cloudbees.com/job/plugins/job/maven-plugin/36/
          Hide
          madamcin Mark Adamcin added a comment -

          Pull Request #10 has passed the build. Is a code review necessary for acceptance of the pull request into the next release?

          Show
          madamcin Mark Adamcin added a comment - Pull Request #10 has passed the build. Is a code review necessary for acceptance of the pull request into the next release?
          Hide
          rpetti Rob Petti added a comment -

          It would be a good idea to have a few people test it before pulling it in for release. The changes look quite extensive, so we should make sure everything is working as expected.

          Show
          rpetti Rob Petti added a comment - It would be a good idea to have a few people test it before pulling it in for release. The changes look quite extensive, so we should make sure everything is working as expected.
          Hide
          rpetti Rob Petti added a comment -

          As near as I can tell, this hasn't been merged into master yet, so this should probably be left open?

          Show
          rpetti Rob Petti added a comment - As near as I can tell, this hasn't been merged into master yet, so this should probably be left open?
          Hide
          madamcin Mark Adamcin added a comment -

          Yes, keep it open. I'm going to create a new pull request this weekend, one that will hopefully be easier to discuss in relationship to this particular issue.

          Show
          madamcin Mark Adamcin added a comment - Yes, keep it open. I'm going to create a new pull request this weekend, one that will hopefully be easier to discuss in relationship to this particular issue.
          Hide
          rockymm Rade Martinović added a comment -

          Mark Adamcin, any news on this front?

          Show
          rockymm Rade Martinović added a comment - Mark Adamcin , any news on this front?
          Hide
          rladstaetter Robert Ladstaetter added a comment -

          any news?

          Show
          rladstaetter Robert Ladstaetter added a comment - any news?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Mathias Åhsberg
          Path:
          src/main/java/hudson/maven/MavenBuild.java
          src/test/java/hudson/maven/AbstractMaven3xBuildTest.java
          http://jenkins-ci.org/commit/maven-plugin/b3f08bd4411cbf138db34de879c9af638cc7ac95
          Log:
          JENKINS-11964 Enable single module build for Maven3.

          Pull Request #9 has been the source for the implementation. However, only parts that was needed to enable single module build for Maven3 projects have been used.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Mathias Åhsberg Path: src/main/java/hudson/maven/MavenBuild.java src/test/java/hudson/maven/AbstractMaven3xBuildTest.java http://jenkins-ci.org/commit/maven-plugin/b3f08bd4411cbf138db34de879c9af638cc7ac95 Log: JENKINS-11964 Enable single module build for Maven3. Pull Request #9 has been the source for the implementation. However, only parts that was needed to enable single module build for Maven3 projects have been used.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          src/main/java/hudson/maven/MavenBuild.java
          src/test/java/hudson/maven/AbstractMaven3xBuildTest.java
          http://jenkins-ci.org/commit/maven-plugin/eceb0289ce3a8ffee6792148fa5aa2ed0032e462
          Log:
          Merge pull request #29 from goober/master

          JENKINS-11964 Enable single module build for Maven3.

          Compare: https://github.com/jenkinsci/maven-plugin/compare/299ccd301ea2...eceb0289ce3a

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/hudson/maven/MavenBuild.java src/test/java/hudson/maven/AbstractMaven3xBuildTest.java http://jenkins-ci.org/commit/maven-plugin/eceb0289ce3a8ffee6792148fa5aa2ed0032e462 Log: Merge pull request #29 from goober/master JENKINS-11964 Enable single module build for Maven3. Compare: https://github.com/jenkinsci/maven-plugin/compare/299ccd301ea2...eceb0289ce3a
          Hide
          rade_martinovic Rade Martinovic added a comment - - edited

          The wiki page for Maven plugin says that it the fix has made it into 2.7 release. So is this issue Resolved?

          Show
          rade_martinovic Rade Martinovic added a comment - - edited The wiki page for Maven plugin says that it the fix has made it into 2.7 release. So is this issue Resolved?

            People

            • Assignee:
              madamcin Mark Adamcin
              Reporter:
              henryju Julien HENRY
            • Votes:
              40 Vote for this issue
              Watchers:
              37 Start watching this issue

              Dates

              • Created:
                Updated: