你如何清除Apache Maven的缓存? [英] How do you clear Apache Maven's cache?

查看:39
本文介绍了你如何清除Apache Maven的缓存?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,Apache Maven 似乎存在缓存问题.使用 Windows Vista 或 Windows 7 在我们的项目上执行全新安装有时会生成与以前构建具有相同数据的工件,即使较新的工件的文件应该已更新.

Recently, Apache Maven seems to be having caching issues. Performing clean installs on our projects using Windows Vista or Windows 7 sometimes produce artifacts with the same data as a previous build even though the newer artifact's files should have been updated.

有没有办法清除这个缓存来强制 maven 总是触发应该构建的本地工件的干净构建?

Is there any way to clear this cache to force maven to always trigger a clean build of the local artifact that should be built?

特别是,我们在使用 war 插件构建 web 应用程序时遇到了问题.Maven 版本是 3.0.3.War插件版本为2.1.1.

In particular, we're having issues building a webapp with the war plugin. Maven version is 3.0.3. War plugin version is 2.1.1.

推荐答案

Delete the artifacts (or the full local repo) from c:Users.m2 epository by手.

Delete the artifacts (or the full local repo) from c:Users<username>.m2 epository by hand.

这篇关于你如何清除Apache Maven的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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