m2eclipse 处理 Maven 插件的情况如何?
一般来说,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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据我的经验,还不错。至少对于绑定到默认生命周期阶段的插件来说。
clean 插件“扩展”正在做什么以及您正在做什么(从 Eclipse 调用
mvn clean
?调用 Project > Clean?)尚不清楚 - 至少对我来说。但也许看看 MNGECLIPSE-823 或 MNGECLIPSE-156。请毫不犹豫地澄清:)我不做弹性运动,所以上面的内容对我来说太模糊了。但提供一个更具体的例子可能会有所帮助。
Decently, to my experience. At least for plugin bound to phases from the default lifecycle.
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 :)I don't do flex so the above is too vague for me. But providing a more concrete example might help.