I have some pom artifacts uploaded to Nexus and I want to get through a curl or maven command or through an mvn command all the versions that are uploaded of that artifact. How would it be possible?
Asked
Active
Viewed 84 times
0
-
1Have you taken a look into the api documentation of Nexus3 ? Its available directly from Nexus itself... – khmarbaise Jul 29 '22 at 10:47
-
Nexus has a web interface where you can see this manually. – Thorbjørn Ravn Andersen Jul 29 '22 at 12:54
-
In the end he decided to curl the metadata followed by a grep to get only the versions. curl ${URL_NEXUS}/maven-metadata.xml | grep -Po '(?<=
)([0-9\.]+(-SNAPSHOT)?)'| sort --version-sort -r – Víctor DC Aug 02 '22 at 08:29