Reputation: 419
I'm trying to resolve SNAPSHOTS artifacts deployed on the local repository (libs-snapshots-local
) but I'm having an unexpected behavior :
my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar
artifactory redirects me to my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar/
(same url with a slash added)Does anyone know how to fix this ? Is this happening to anyone ?
If I try to resolve the artifact using the libs-snapshots-local
the download will succeeed but if I try with the virtual repository repo
it will not work:
wget http://artifactory:8080/repo/my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar
= REDIRECT then 404
wget http://artifactory:8080/libs-snapshots-local/my/group/artifact/1.0-SNAPSHOT/artifact-1.0-SNAPSHOT.jar
= OK
But the virtual repository repo
should contains all the other repository by default (and I don't know if it is even possible to change this behavior).
Upvotes: 1
Views: 484
Reputation: 20386
The root cause of this issue is related to a redirect performed by a remote Maven repository - http://mirrors.ibiblio.org/pub/mirrors/maven2.
In some cases this redirect will cause Artifactory to assume it got a proper response from the remote repository while actually it is not the expected type of response (getting an HTML document with the repository listing instead of an artifact content).
For more details see the answer to this question
Upvotes: 1