如何从安装了install:install-file的本地Maven存储库中删除jar文件? [英] How to remove jar file from local maven repository which was added with install:install-file?

查看:1190
本文介绍了如何从安装了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

这篇关于如何从安装了install:install-file的本地Maven存储库中删除jar文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆