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

Maven2 Incremental Build Not Functional When Using Relative Paths In Workspace

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Mac, Win XP, Win2k3 Server
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Hide
            abayer 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.

            Show
            abayer 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.
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            dogfood dogfood added a comment -

            Integrated in hudson_main_trunk #279

            Show
            dogfood dogfood added a comment - Integrated in hudson_main_trunk #279

              People

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

                Dates

                Created:
                Updated:
                Resolved: