如何从安装了install:install-file的本地Maven存储库中删除jar文件?

如何从安装了install:install-file的本地Maven存储库中删除jar文件?

问题描述:

mvn install:install-file -Dfile=phonegap-1.1.0.jar -DgroupId?=phonegap -DartifactId?=phonegap -Dversion=1.1.0 -Dpackaging=jar

我使用上面的命令将本地jar安装到Maven本地仓库中.现在,我已经从Maven回购中获得了依赖.我想将其从本地存储库中删除.如何清洁?

I use above command to install local jar into maven local repo. Now I have got the dependency from maven repo. I want to remove this from local repo. How to clean it ?

虽然您可以执行一个maven命令来执行此操作,但从存储库中手动删除文件会更容易.

While there is an maven command you can execute to do this, it's easier to just delete the files manually from the repository.

在Windows Documents and Settings\your username\.m2$HOME/.m2在Linux上类似

Like this on windows Documents and Settings\your username\.m2 or $HOME/.m2 on Linux