0

Is there any way to 'nicely' deinstall artefact previously installed into local repository by Maven 2? I have original pom.xml file and of course I can manually remove artifact but I'd like to do it in some more clean way than manual delete.

Googled around but no luck, maybe I just searched in wrong direction.
Thank you in advance.

4

1 回答 1

1

你可能想看看这个 Maven 依赖插件目标:purge-local-repository

dependency:purge-local-repository 目标的目的是从本地 maven 存储库中清除(删除和可选地重新解析)工件。

但是,我认为您可能会丢失手动上传到本地存储库的其他“手工”依赖项。

我想说从本地存储库中手动删除相关文件(和文件夹)并没有什么不好。

于 2013-07-08T13:47:46.007 回答