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

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • None
    • * Jenkins LTS 1.565.2 (deployed as war inside of Tomcat)
      * Sonatype Nexus OSS 2.8.1

      imod

      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

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

              Created:
              Updated:
              Resolved: