Nexus Artifact Removal Team

I uploaded the artifact to Sonatype Nexus from the command line using MAVEN / maven / bin / mvn -X -e deploy: deploy-file -Durl = http://maven-nexus.com/nexus/content/repositories/xyz -DrepositoryId = xyz -DgroupId = com.kumar -DartifactId = peshu -Dversion = 1.0.12 -Dpackaging = war -Dfile = RIGHT.war

Now I would like to remove this version (1.0.12) from the command line so that I can automate this process, which command can I use instead of Curl.

+5
source share
2 answers

Short anwser:

curl --request DELETE --write "%{http_code} %{url_effective}\\n" --user login:password --output /dev/null --silent http://maven-nexus.com/nexus/content/repositories/xyz/com.kumar/peshu/1.0.12

This will remove the GAV hole from your connection.

Note:

  • The option --write "%{http_code} %{url_effective}\\n will return you the http code and the effective URL used; idem --output /dev/null --silent hide some detailed output information, ...
  • I'm not quite sure, but I think you need a user login with administrator privileges on Nexus.
+6
source

In Nexus version 2.5 there are Remove editions from the repository .

The issue of deleting released artifacts is discussed in detail here:

https://support.sonatype.com/entries/20871791-Can-I-delete-releases-from-Nexus-after-they-have-been-published-

+4
source

All Articles