-
Notifications
You must be signed in to change notification settings - Fork 69
Open
Labels
Description
The ArtifactRetriever should use the resource xml to determine the full snapshot version instead of the redirect url.
Link to resource xml:
https://s01.oss.sonatype.org/service/local/repositories/snapshots/content/com/devonfw/cobigen/templates/crud-openapi-angular-client-app/2021.12.007-SNAPSHOT/
Code part to change:
Lines 50 to 56 in 0c28780
| // Check for full SNAPSHOT version link | |
| if (item.getVersion().contains("-SNAPSHOT")) { | |
| URL snapShotUrl = new URL(MavenSearchRepositoryConstants.NEXUS2_REPOSITORY_URL + "/" | |
| + MavenSearchRepositoryConstants.NEXUS2_SNAPSHOT_REPOSITORY_LINK + "?r=snapshots" + "&g=" | |
| + item.getGroupId() + "&a=" + item.getArtifactId() + "&v=" + item.getVersion() + "&e=" | |
| + artifactLink.getExtension() + "&c=" + artifactLink.getClassifier()); | |
| downloadLinks.add(snapShotUrl); |