我已使用以下命令从命令行将工件上传到 Sonatype Nexus
MAVEN/maven/bin/mvn -X -e 部署:部署文件 -Durl=http://maven-nexus.com/nexus/content/repositories/xyz http://maven-nexus.com/nexus/content/repositories/xyz-DrepositoryId=xyz -DgroupId=com.kumar -DartifactId=peshu -Dversion=1.0.12 -Dpackaging=war -Dfile=RIGHT.war
现在我想从命令行删除这个版本(1.0.12),以便我可以自动化这个过程,我可以使用什么命令来代替 Curl。
简短回答:
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
这将从您的连接中删除 GAV 孔。
Note:
- The
--write "%{http_code} %{url_effective}\\n
选项将返回您的 http 代码和使用的有效 url;同上--output /dev/null --silent
隐藏输出中的一些详细信息,...
- 我不太确定,但我认为您需要具有 Nexus 管理员权限的用户登录。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)