kaizenCoder
kaizenCoder

Reputation: 2229

How to remove/delete an artefact via Maven in a remote Nexus repo?

How can I use maven in an 'undeploy' fashion to remove an artefact deployed to the nexus staging repo?

I currently execute the a command like below for deployment:

deploy:deploy-file -Durl=${bamboo.ArtefactsNexusUrl} -DrepositoryId=${bamboo.nexusRepoId} -DgroupId=${bamboo.GroupId} -DartifactId=${bamboo.ArtefactName} -Dversion=${bamboo.inject.VERSION} -Dfile=${bamboo.ArtefactName}-${bamboo.inject.VERSION}.${bamboo.ArtefactExtension} -Dpackaging=${bamboo.ArtefactExtension} 

Upvotes: 4

Views: 10333

Answers (1)

Manfred Moser
Manfred Moser

Reputation: 29912

You can drop the whole staging repository with the Nexus Staging Maven Plugin or via the Nexus user interface. Check out the documentation in the book.

Upvotes: 2

Related Questions