-
Bug
-
Resolution: Fixed
-
Major
-
None
-
* Jenkins LTS 1.565.2 (deployed as war inside of Tomcat)
* Sonatype Nexus OSS 2.8.1
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
- duplicates
-
JENKINS-24781 Repository Connector Plugin failed to resolve dependency after upgrade (0.8.2 -> 1.0.1)
-
- Resolved
-