gpt4 book ai didi

eclipse - 我可以通过 pom.xml 配置 m2eclipse 吗?

转载 作者:行者123 更新时间:2023-12-03 22:29:17 25 4
gpt4 key购买 nike

使用 maven-eclipse-plugin,使用 mvn eclipse:eclipse ,你可以指定eclipse project naturesbuilders这将自动添加到 eclipse 项目中。

m2eclipse 的早期版本使用了 maven-eclipse-plugin 的配置块,还允许您使用相同的机制激活自然和构建器。情况似乎不再如此,因为 a) 我找不到对 maven-eclipse-plugin 的任何引用在 m2eclipse 源和 b) 它只是不起作用:-)

所以这就是我的问题:有没有办法从 pom.xml 配置 m2eclipse 生成的 eclipse 项目?具体来说:项目 build 者和性质,但我也对其他选择感兴趣。

最佳答案

以下thread总结了几乎所有内容。首先,它解释了 m2eclipse 不再支持 Maven Eclipse 插件中的任何内容,因为:

  • Sonatype 不维护它。
  • 这给他们带来了太多的麻烦。

  • 其次,它指出处理额外项目性质和构建器的 m2eclipse 方法是编写项目配置器:

    (...) we encourage writing configurators to add the natures and builders you want based on what it available in the POM.



    this link获取指南和 this project对于一些现有的 checkstyle、findbugs、pmd 配置器。

    关于eclipse - 我可以通过 pom.xml 配置 m2eclipse 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4122308/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com