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

查看:54
本文介绍了如何从使用 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 repo 获得了依赖.我想从本地仓库中删除它.如何清洁?

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 a maven command you can execute to do this, it's easier to just delete the files manually from the repository.

像这样在 Windows Documents and Settingsyour username.m2$HOME/.m2 在 Linux 上

Like this on windows Documents and Settingsyour username.m2 or $HOME/.m2 on Linux

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

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