Maven 持续为 Java EE 项目构建 EAR 模块

发布于 2024-09-25 19:55:21 字数 1132 浏览 3 评论 0原文

我有一个使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

止于盛夏 2024-10-02 19:55:21

我遇到了同样的问题,直到我在项目属性/Maven/生命周期映射中取消选中“处理资源时跳过 Maven 编译器插件”。

I had the same problem until I unchecked "skip maven compiler plugin when processing resources" in Project properties/Maven/Lifecycle mapping.

用心笑 2024-10-02 19:55:21

不确定这是否适合您,但请检查项目属性中的构建器列表(项目->属性->构建器),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.

淡笑忘祈一世凡恋 2024-10-02 19:55:21

重新安装了 m2e,没有 m2e extras

reinstalled m2e WITHOUT the m2e extras

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文