eclipse 保存 pom.xml 后如何禁用自动“更新 Maven 依赖项”?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2651694/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to disable auto "Update Maven Dependencies" after saving a pom.xml?
提问by Christopher Klewes
How to disable auto "Update Maven Dependencies" after saving a pom.xml
in Eclipse IDE with m2eclipse Plugin?
pom.xml
使用 m2eclipse 插件在 Eclipse IDE 中保存后如何禁用自动“更新 Maven 依赖项” ?
16.04.10 11:09:40 MESZ: Refreshing [/project/pom.xml]
16.04.10 11:09:40 MESZ: Maven Builder: AUTO_BUILD
采纳答案by Pascal Thivent
You can't. But why would you even want to do that? Keeping your project build path in sync with the pom is a good thing.
你不能。但你为什么要这样做呢?保持项目构建路径与 pom 同步是一件好事。
回答by mateusz.fiolka
Window -> Preferences -> Maven -> enable Offline option
窗口 -> 首选项 -> Maven -> 启用离线选项
回答by Micha? Mech
You can edit "Goals to run when updating project configuration" in Window > Preferences > Maven. Default setting is "process-resources", try to remove it.
您可以在“窗口”>“首选项”>“Maven”中编辑“更新项目配置时运行的目标”。默认设置为“process-resources”,尝试删除它。
回答by Gordon Dickens
If you disable "process-resources" in a Spring application, you will not get any resource files such as log4j.xml or Spring configuration files copied to the
如果在 Spring 应用程序中禁用“process-resources”,则不会将任何资源文件(例如 log4j.xml 或 Spring 配置文件)复制到