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

Parsing of POM happens before SNAPSHOT-Parents are updated

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Hudson 1.394

      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.

          [JENKINS-8663] Parsing of POM happens before SNAPSHOT-Parents are updated

          Stephan Pauxberger created issue -
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Jenkins IRC Bot made changes -
          Component/s New: maven-plugin [ 16033 ]
          Component/s Original: maven2 [ 15487 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 138807 ] New: JNJira + In-Review [ 188153 ]

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

              Created:
              Updated:
              Resolved: