m2eclipse 处理 Maven 插件的情况如何?

发布于 2024-09-25 07:06:58 字数 345 浏览 8 评论 0原文

一般来说,m2eclipse 处理修改或修改生命周期阶段的 Maven 插件的情况如何?

特别是,我有一个具有 maven-clean-plugin 扩展的项目,可以使用配置文件集标记删除额外生成的目录(不在 target/ 中)。这在命令行运行 mvn 时有效,但在 Eclipse 中执行 clean 时无效。有什么办法让 m2eclipse 处理该插件吗?

另一个例子是flexmojos;有很多可以使用 flexmojo 插件进行配置,但这些参数似乎没有被 m2eclipse 导入。

集成只是临时的吗?如果m2eclipse嵌入了Maven,为什么不能使用底层pom.xml配置直接执行插件?

In general, how well does m2eclipse deal with Maven plugins that modify or amend lifecycle phases?

In particular, I have a project that has a maven-clean-plugin extension to remove an extra generated directory (not in target/) using the configuration filesets tag. This works when running mvn at the command line but not when doing a clean in Eclipse. Is there any way to get m2eclipse to process that plugin?

Another example is flexmojos; there's a lot that can be configured with the flexmojo plugin but those parameters don't seem to get imported by m2eclipse.

Is the integration solely ad-hoc? If m2eclipse embeds Maven, why can't the plugins be executed directly using the underlying pom.xml configuration?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

爱要勇敢去追 2024-10-02 07:06:58

一般来说,m2eclipse 处理修改或修改生命周期阶段的 Maven 插件的情况如何?

根据我的经验,还不错。至少对于绑定到默认生命周期阶段的插件来说。

特别是,我有一个具有 maven-clean-plugin 扩展的项目 (...)。这在命令行运行 mvn 时有效,但在 Eclipse 中执行 clean 时无效。有什么办法让 m2eclipse 处理该插件吗?

clean 插件“扩展”正在做什么以及您正在做什么(从 Eclipse 调用 mvn clean?调用 Project > Clean?)尚不清楚 - 至少对我来说。但也许看看 MNGECLIPSE-823MNGECLIPSE-156。请毫不犹豫地澄清:)

另一个例子是flexmojos;有很多可以使用 flexmojo 插件进行配置,但这些参数似乎没有被 m2eclipse 导入。

我不做弹性运动,所以上面的内容对我来说太模糊了。但提供一个更具体的例子可能会有所帮助。

In general, how well does m2eclipse deal with Maven plugins that modify or amend lifecycle phases?

Decently, to my experience. At least for plugin bound to phases from the default lifecycle.

In particular, I have a project that has a maven-clean-plugin extension (...). This works when running mvn at the command line but not when doing a clean in Eclipse. Is there any way to get m2eclipse to process that plugin?

What the clean plugin "extension" is doing and what you're doing (calling mvn clean from Eclipse? calling Project > Clean?) is unclear - at least for me. But maybe have a look at MNGECLIPSE-823 or MNGECLIPSE-156. And don't hesitate to clarify :)

Another example is flexmojos; there's a lot that can be configured with the flexmojo plugin but those parameters don't seem to get imported by m2eclipse.

I don't do flex so the above is too vague for me. But providing a more concrete example might help.

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