简体   繁体   English

使用 Maven 删除部署到 Artifactory Repo 的工件

[英]Remove Artifacts that were Deployed to Artifactory Repo with Maven

I deployed a certain jar file and pom to an artifactory repository using the following command format:我使用以下命令格式将某个 jar 文件和 pom 部署到工件存储库:

mvn deploy:deploy-file -DpomFile= -Dfile= -DrepositoryId= -Durl=

The pom file I used was defective and is causing build issues for dependent projects.我使用的 pom 文件有缺陷,导致依赖项目的构建问题。 When I look at the corresponding area of the artifactory repo where the jar and pom were deployed, what I see is more than a simple tree with a pom file and jar.当我查看部署 jar 和 pom 的 artifactory repo 的相应区域时,我看到的不仅仅是带有 pom 文件和 jar 的简单树。

Rather than manually picking through the repository to remove the defective pom I deployed and whatever errant directory structure it may have set up, is there a maven command I can execute that can "undo" what I committed in a clean fashion?与其手动选择存储库以删除我部署的有缺陷的 pom 以及它可能设置的任何错误的目录结构,是否有我可以执行的 maven 命令可以以干净的方式“撤消”我提交的内容? thanks for any advice.感谢您的任何建议。

No. Maven cannot "undeploy" files.不。Maven 不能“取消部署”文件。 You need to remove them inside the repository manager.您需要在存储库管理器中删除它们。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM