你如何明确的Apache Maven的缓存? [英] How do you clear Apache Maven's cache?
问题描述
近日,阿帕奇Maven的似乎有缓存的问题。使用Windows Vista或Windows 7有时会产生使用相同的数据为previous构建即使新神器的文件应该已经被更新的文物我们的项目执行全新安装。
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.
有什么办法来清除此缓存强制行家总是触发一个干净的构建当地的工件,应建立?
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?
特别是,我们遇到了建设有战争插件的web应用程序的问题。 Maven的版本是3.0.3。战争的插件版本为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.
推荐答案
删除工件(或完整本地回购)C:\\ Users \\用户名\\ .m2目录\\库
手。
这篇关于你如何明确的Apache Maven的缓存?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!