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

Repository Connector Plugin failed to resolve dependency after upgrade (0.8.2 -> 1.0.1)

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      * Jenkins LTS 1.565.2 (deployed as war inside of Tomcat)
      * Sonatype Nexus OSS 2.8.1
    • Similar Issues:

      Description

      Dominik Bartholdi

      Job fails after Repository Connector Plugin upgrade (0.8.2 -> 1.0.1); please note that same artifact (with same artifact version) is resolved as expected with 0.8.2.

      Log:

         ...
         INFO: define repo: [Repository id=nexus-xxx, type=default, url=http://nexus.xxx.com/nexus/content/groups/public, isRepositoryManager=true]
         Resolving metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Resolved metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Resolving artifact com.xxx.soa:bam:pom:1.0.5-SNAPSHOT
         Resolving metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Resolved metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Downloading: http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/bam-1.0.5-SNAPSHOT.pom
         
         class org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
         Resolved artifact com.xxx.soa:bam:pom:1.0.5-SNAPSHOT from null
         Missing artifact descriptor for com.xxx.soa:bam:war:1.0.5-SNAPSHOT
         Resolving artifact com.xxx.soa:bam:war:1.0.5-SNAPSHOT
         Resolving metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Resolved metadata com.xxx.soa:bam:1.0.5-SNAPSHOT/maven-metadata.xml from /tmp/repositoryconnector-repo (enhanced)
         Downloading: http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/bam-1.0.5-SNAPSHOT.war
      
         class org.apache.maven.wagon.ResourceDoesNotExistException: Unable to locate resource in repository
         Resolved artifact com.xxx.soa:bam:war:1.0.5-SNAPSHOT from null
         ...
      

      the url used return a 404 error: http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/bam-1.0.5-SNAPSHOT.pom

      if i look at: http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/maven-metadata.xml, i have:

      <metadata modelVersion="1.1.0">
          <groupId>com.xxx.soa</groupId>
          <artifactId>bam</artifactId>
          <version>1.0.5-SNAPSHOT</version>
          <versioning>
              <snapshot>
                  <timestamp>20141112.110743</timestamp>
                  <buildNumber>5</buildNumber>
              </snapshot>
              <lastUpdated>20141112110743</lastUpdated>
              <snapshotVersions>
                  <snapshotVersion>
                      <extension>war</extension>
                      <value>1.0.5-20141112.110743-5</value>
                      <updated>20141112110743</updated>
                  </snapshotVersion>
                  <snapshotVersion>
                      <extension>pom</extension>
                      <value>1.0.5-20141112.110743-5</value>
                      <updated>20141112110743</updated>
                  </snapshotVersion>
              </snapshotVersions>
          </versioning>
      </metadata>
      

      so, the url used to download the pom should be:
      http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/bam-1.0.5-20141112.110743-5.pom
      instead of
      http://nexus.xxx.com/nexus/content/groups/public/com/xxx/soa/bam/1.0.5-SNAPSHOT/bam-1.0.5-SNAPSHOT.pom

      that's the same for the war file

        Attachments

          Issue Links

            Activity

            Hide
            poussma Mathieu POUSSE added a comment -
            Show
            poussma Mathieu POUSSE added a comment - Fixed in https://github.com/jenkinsci/repository-connector-plugin/pull/4 waiting for approval
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Olivier Lamy
            Path:
            src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java
            http://jenkins-ci.org/commit/repository-connector-plugin/bad40031ed9eb0a181cdc13b13036a60a1ff268d
            Log:
            Merge pull request #4 from mathieu-pousse/master

            [FIXED JENKINS-25620] [FIXED JENKINS-24781]

            Compare: https://github.com/jenkinsci/repository-connector-plugin/compare/d5b21411acc2...bad40031ed9e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Olivier Lamy Path: src/main/java/org/jvnet/hudson/plugins/repositoryconnector/aether/Aether.java http://jenkins-ci.org/commit/repository-connector-plugin/bad40031ed9eb0a181cdc13b13036a60a1ff268d Log: Merge pull request #4 from mathieu-pousse/master [FIXED JENKINS-25620] [FIXED JENKINS-24781] Compare: https://github.com/jenkinsci/repository-connector-plugin/compare/d5b21411acc2...bad40031ed9e
            Hide
            domi Dominik Bartholdi added a comment -

            released as 1.1.0

            Show
            domi Dominik Bartholdi added a comment - released as 1.1.0

              People

              • Assignee:
                imod Dominik Bartholdi
                Reporter:
                raphael_unique Raphaƫl UNIQUE
              • Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: