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

Maven Jobs should include their parent POM's fingerprint to correctly link projects

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: maven-plugin
    • Labels:
      None

      Description

      Given two Maven2 projects:

      Project A (POM only)
      Project B (Jar), has A as parent (build when SNAPSHOT-dependencies are built)

      Now, when A is built (#1), a build of B (#1) is correctly triggered. A shows a DS dependency to B, B an US dependency to A.

      However, when viewing build #1 of A, it shows a downstream dependency to B without a specific build number (none).

      When comparing both projects via "project dependecies", no dependencies are shown, which is plainly wrong.

      A small change to MavenFingerprinter should do the trick.

        Activity

        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Kohsuke Kawaguchi
        Path:
        src/main/java/hudson/maven/reporters/MavenFingerprinter.java
        http://jenkins-ci.org/commit/maven-plugin/b5352e26565df87cad343e87590405feb21bcaf4
        Log:
        Revert JENKINS-8383 as it didn't work with Maven 2(cherry picked from commit db23d8cf788f2d1748d63e5049264d1adc8f0856)

        Conflicts:

        changelog.html

        Originally-Committed-As: ab1eed1488923415754719a87e887c66cfff343e

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/b5352e26565df87cad343e87590405feb21bcaf4 Log: Revert JENKINS-8383 as it didn't work with Maven 2(cherry picked from commit db23d8cf788f2d1748d63e5049264d1adc8f0856) Conflicts: changelog.html Originally-Committed-As: ab1eed1488923415754719a87e887c66cfff343e
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Stephan Pauxberger
        Path:
        src/main/java/hudson/maven/reporters/MavenFingerprinter.java
        http://jenkins-ci.org/commit/maven-plugin/7cd8f4e6932cb521bfe5c8b7c4441c32ba3c5e13
        Log:
        JENKINS-8383 recreated changes

        Originally-Committed-As: 85b9c503c02c9e44216cdba72a78f612c8299a52

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephan Pauxberger Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/7cd8f4e6932cb521bfe5c8b7c4441c32ba3c5e13 Log: JENKINS-8383 recreated changes Originally-Committed-As: 85b9c503c02c9e44216cdba72a78f612c8299a52
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Stephan Pauxberger
        Path:
        src/main/java/hudson/maven/reporters/MavenFingerprinter.java
        http://jenkins-ci.org/commit/maven-plugin/02a08e038bc5f1d1a68c6c5485b60027e2e176ec
        Log:
        JENKINS-8383 Do not attempt to resolve parent with Maven 2.0

        Originally-Committed-As: 8e334165309db82ca56be7c813ad7b9294376bce

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephan Pauxberger Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/02a08e038bc5f1d1a68c6c5485b60027e2e176ec Log: JENKINS-8383 Do not attempt to resolve parent with Maven 2.0 Originally-Committed-As: 8e334165309db82ca56be7c813ad7b9294376bce
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Stephan Pauxberger
        Path:
        src/main/java/hudson/maven/reporters/MavenFingerprinter.java
        http://jenkins-ci.org/commit/maven-plugin/302289501379d0cdae7bc81977c9e035fe3e6b76
        Log:
        JENKINS-8383 Maven 2.2 Project does not return a BuilderConfiguration,
        only resolve parent artifact for Maven 3+

        Originally-Committed-As: b82d07712e5003cebace29e5d25fdc61f1751390

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Stephan Pauxberger Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/302289501379d0cdae7bc81977c9e035fe3e6b76 Log: JENKINS-8383 Maven 2.2 Project does not return a BuilderConfiguration, only resolve parent artifact for Maven 3+ Originally-Committed-As: b82d07712e5003cebace29e5d25fdc61f1751390
        Hide
        scm_issue_link SCM/JIRA link daemon added a comment -

        Code changed in jenkins
        User: Christoph Kutzinski
        Path:
        src/main/java/hudson/maven/reporters/MavenFingerprinter.java
        http://jenkins-ci.org/commit/maven-plugin/5add57a49d3aa455647ccbc2c9ef4666b44d5afa
        Log:
        Make parent POM fingerprinting work with Maven 2.2, too JENKINS-8383
        Originally-Committed-As: 38aa485883b3304b919101b4730485f45b988ed4

        Show
        scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christoph Kutzinski Path: src/main/java/hudson/maven/reporters/MavenFingerprinter.java http://jenkins-ci.org/commit/maven-plugin/5add57a49d3aa455647ccbc2c9ef4666b44d5afa Log: Make parent POM fingerprinting work with Maven 2.2, too JENKINS-8383 Originally-Committed-As: 38aa485883b3304b919101b4730485f45b988ed4

          People

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

            Dates

            • Created:
              Updated:
              Resolved: