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

Maven2 Incremental Build Not Functional When Using Relative Paths In Workspace

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • maven-plugin
    • None
    • Mac, Win XP, Win2k3 Server

      When using flat project structures in a Maven2 Job, incremental build doesn't work. It always builds the entire project no matter what. The setup is such:

      aggregator pom:

      <modules>
           <module>../release-module1</module>
           <module>../release-module2</module>
      </modules>
      

      module pom:

      <parent>
          <artifactId>release-parent</artifactId>
          <groupId>com.captechventures</groupId>
          <version>0.0.12-SNAPSHOT</version>
          <relativePath>../release-parent/pom.xml</relativePath>
      </parent>
      

      Attaching a screenshot of what the project setup looks like in Hudson

          [JENKINS-5357] Maven2 Incremental Build Not Functional When Using Relative Paths In Workspace

          Andrew Bayer added a comment -

          I believe this is because our logic for determining whether a change is in a given module doesn't handle relative module paths - let me see if that's something that can be changed.

          Andrew Bayer added a comment - I believe this is because our logic for determining whether a change is in a given module doesn't handle relative module paths - let me see if that's something that can be changed.

          Code changed in hudson
          User: : abayer
          Path:
          trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          trunk/hudson/main/test/src/test/java/hudson/maven/MavenMultiModuleTest.java
          trunk/hudson/main/test/src/test/resources/hudson/maven/maven-multimod-rel-base.zip
          trunk/hudson/main/test/src/test/resources/hudson/maven/maven-multimod.zip
          http://jenkins-ci.org/commit/34983
          Log:
          [FIXED JENKINS-5357] Properly handle relative paths in modules when determining changesets in Maven projects

          SCM/JIRA link daemon added a comment - Code changed in hudson User: : abayer Path: trunk/hudson/main/maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java trunk/hudson/main/test/src/test/java/hudson/maven/MavenMultiModuleTest.java trunk/hudson/main/test/src/test/resources/hudson/maven/maven-multimod-rel-base.zip trunk/hudson/main/test/src/test/resources/hudson/maven/maven-multimod.zip http://jenkins-ci.org/commit/34983 Log: [FIXED JENKINS-5357] Properly handle relative paths in modules when determining changesets in Maven projects

          dogfood added a comment -

          Integrated in hudson_main_trunk #279

          dogfood added a comment - Integrated in hudson_main_trunk #279

            abayer Andrew Bayer
            bigehokie bigehokie
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: