Maven 持续为 Java EE 项目构建 EAR 模块
我有一个使用 javaee5-maven-archetype 构建并导入的 Maven Java EE 项目进入日食(赫利俄斯)。该项目的 EAR 模块每秒都会持续构建,即使没有任何更改也是如此。有时 Eclipse 冻结,我必须终止该进程。 Problems 视图中未列出任何内容,但 Maven Console 上持续显示以下内容。
2010/10/04 12:05:27 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:27 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:28 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:30 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:30 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:30 PM: Maven Builder: AUTO_BUILD
我正在使用 M2Eclipse
I have a Maven Java EE project built using javaee5-maven-archetype and imported into Eclipse(Helios). The EAR module of the project is continuolsy build every second, even when there are no changes. Sometime Eclipse freezes and i have to kill the process. Nothing is listed in the Problems view but the below is displayed continuosly on the Maven Console.
2010/10/04 12:05:27 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:27 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:28 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:28 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:29 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:30 PM: Refreshing [/MyProject-ear/pom.xml]
2010/10/04 12:05:30 PM: Maven Builder: AUTO_BUILD
2010/10/04 12:05:30 PM: Maven Builder: AUTO_BUILD
I'm using M2Eclipse
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我遇到了同样的问题,直到我在项目属性/Maven/生命周期映射中取消选中“处理资源时跳过 Maven 编译器插件”。
I had the same problem until I unchecked "skip maven compiler plugin when processing resources" in Project properties/Maven/Lifecycle mapping.
不确定这是否适合您,但请检查项目属性中的构建器列表(项目->属性->构建器),Maven 项目构建器列在那里,也许如果您禁用此构建器(我还没有尝试过) )你可以摆脱这个问题。
此致。
Not sure if this will work for you, but check the Builders list in the Project properties (Project->Properties->Builders), the Maven Project Builder is listed there, maybe if you disable this builder (I haven't tried) you could get rid of that problem.
Best regards.
重新安装了 m2e,没有 m2e extras
reinstalled m2e WITHOUT the m2e extras