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

Parsing of POM happens before SNAPSHOT-Parents are updated

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None
    • Environment:
      Hudson 1.394
    • Similar Issues:

      Description

      Given the following constellation.

      Project A 1.0-SNAPSHOT (POM only)
      Project B 1.0-SNAPSHOT (Jar, has A as parent)

      Both jobs use private Maven repositories.

      Both projects have a separate job.

      Change something in project A, commit. Job A builds and deploys to repository

      Change something in project B that dependes on changes in project A. Commit. Job B starts an resolves the POM using the old parent POM, potentially leading to a broken build.

      For example: B declares a dependency WITH a version. Now remove the version from B and enter a dependencyManagement entry into A. Commit A, later B.
      Result: B fails because pom validation has no valid version for the dependency.

      Only solution (since private repositories are used): Clean workspace of B via Webinterface, the rebuild B.

        Attachments

          Activity

          Hide
          paux Stephan Pauxberger added a comment -

          Quick workaround using MavenExtraBuildSteps

          Create a prebuild step calling "initialize -N", which is called before parsing of the POM.

          Show
          paux Stephan Pauxberger added a comment - Quick workaround using MavenExtraBuildSteps Create a prebuild step calling "initialize -N", which is called before parsing of the POM.
          Hide
          evernat evernat added a comment -

          Can the issue be reproduced with a recent version of Jenkins?

          Show
          evernat evernat added a comment - Can the issue be reproduced with a recent version of Jenkins?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          http://jenkins-ci.org/commit/jenkins/1421ca15d5a36706214476e613eeab789b9066df
          Log:
          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a
          Maven Job

          If the -U flag is specified in the goals/options of the build step of a
          Maven job, it should be used as well in the parsing step.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: changelog.html maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java http://jenkins-ci.org/commit/jenkins/1421ca15d5a36706214476e613eeab789b9066df Log: [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a Maven Job If the -U flag is specified in the goals/options of the build step of a Maven job, it should be used as well in the parsing step.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Olivier Lamy
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          http://jenkins-ci.org/commit/jenkins/f0130bf1b2410807fccf4f0c9af259201151228a
          Log:
          Merge pull request #442 from Vlatombe/JENKINS-8663

          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a Maven Job
          good catch !

          Compare: https://github.com/jenkinsci/jenkins/compare/0f08dc0...f0130bf

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: changelog.html maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java http://jenkins-ci.org/commit/jenkins/f0130bf1b2410807fccf4f0c9af259201151228a Log: Merge pull request #442 from Vlatombe/ JENKINS-8663 [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a Maven Job good catch ! Compare: https://github.com/jenkinsci/jenkins/compare/0f08dc0...f0130bf
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_main_trunk #1660
          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a (Revision 1421ca15d5a36706214476e613eeab789b9066df)

          Result = SUCCESS
          Vincent Latombe : 1421ca15d5a36706214476e613eeab789b9066df
          Files :

          • maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          • changelog.html
          • maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          • maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1660 [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a (Revision 1421ca15d5a36706214476e613eeab789b9066df) Result = SUCCESS Vincent Latombe : 1421ca15d5a36706214476e613eeab789b9066df Files : maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java changelog.html maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          Hide
          dogfood dogfood added a comment -

          Integrated in jenkins_ui-changes_branch #21
          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a (Revision 1421ca15d5a36706214476e613eeab789b9066df)

          Result = SUCCESS
          Vincent Latombe : 1421ca15d5a36706214476e613eeab789b9066df
          Files :

          • maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          • maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          • changelog.html
          • maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          Show
          dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #21 [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a (Revision 1421ca15d5a36706214476e613eeab789b9066df) Result = SUCCESS Vincent Latombe : 1421ca15d5a36706214476e613eeab789b9066df Files : maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java changelog.html maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          changelog.html
          maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java
          maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java
          maven-plugin/src/main/java/hudson/maven/MavenUtil.java
          http://jenkins-ci.org/commit/jenkins/feddca252bc2bb295e8b37a24a9063c31b37e702
          Log:
          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a
          Maven Job

          If the -U flag is specified in the goals/options of the build step of a
          Maven job, it should be used as well in the parsing step.
          (cherry picked from commit 1421ca15d5a36706214476e613eeab789b9066df)

          Conflicts:

          changelog.html

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: changelog.html maven-plugin/src/main/java/hudson/maven/MavenEmbedderRequest.java maven-plugin/src/main/java/hudson/maven/MavenModuleSetBuild.java maven-plugin/src/main/java/hudson/maven/MavenUtil.java http://jenkins-ci.org/commit/jenkins/feddca252bc2bb295e8b37a24a9063c31b37e702 Log: [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a Maven Job If the -U flag is specified in the goals/options of the build step of a Maven job, it should be used as well in the parsing step. (cherry picked from commit 1421ca15d5a36706214476e613eeab789b9066df) Conflicts: changelog.html
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Vincent Latombe
          Path:
          src/main/java/hudson/maven/MavenEmbedderRequest.java
          src/main/java/hudson/maven/MavenModuleSetBuild.java
          src/main/java/hudson/maven/MavenUtil.java
          http://jenkins-ci.org/commit/maven-plugin/54e770fedb2237afff2eff3e3941023c0c88bb25
          Log:
          [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a
          Maven Job

          If the -U flag is specified in the goals/options of the build step of a
          Maven job, it should be used as well in the parsing step.

          Originally-Committed-As: 1421ca15d5a36706214476e613eeab789b9066df

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Vincent Latombe Path: src/main/java/hudson/maven/MavenEmbedderRequest.java src/main/java/hudson/maven/MavenModuleSetBuild.java src/main/java/hudson/maven/MavenUtil.java http://jenkins-ci.org/commit/maven-plugin/54e770fedb2237afff2eff3e3941023c0c88bb25 Log: [FIXED JENKINS-8663] Flag -U is not used during the parsing step of a Maven Job If the -U flag is specified in the goals/options of the build step of a Maven job, it should be used as well in the parsing step. Originally-Committed-As: 1421ca15d5a36706214476e613eeab789b9066df

            People

            • Assignee:
              Unassigned
              Reporter:
              paux Stephan Pauxberger
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: