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

Maven2 Incremental Build Not Functional When Using Relative Paths In Workspace

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • maven-plugin
    • None
    • Mac, Win XP, Win2k3 Server

    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

            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.

            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.

            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_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
            dogfood dogfood added a comment -

            Integrated in hudson_main_trunk #279

            dogfood dogfood added a comment - Integrated in hudson_main_trunk #279

            People

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

              Dates

                Created:
                Updated:
                Resolved: