我知道如何使用此命令删除整个GAV:
curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion
它就像一个魅力.
现在我需要删除带有分类器的工件,我无法找到或读取此解决方案.
我想知道是否有办法使用Nexus REST API删除带有分类器的工件?
要删除特定工件,请使用以下命令:
curl --request DELETE --user "login:password" http://myNexus/service/local/repositories/myRepository/content/myGroupId/myArtifactId/myVersion/myArtifactId-myVersion.jar
然后,您需要请求nexus重建gav的元数据(否则*.md5和*.sha1文件将保留在您的存储库中)
curl -v --request DELETE --user "login:password" --silent http://nexusHost/service/local/metadata/repositories/myRepository/content