gpt4 book ai didi

eclipse - 如何在 m2eclipse 中导入替代的 pom.xml 文件

转载 作者:行者123 更新时间:2023-12-01 02:43:10 30 4
gpt4 key购买 nike

唯一可能的输入是 m2eclipse 将自动扫描 pom.xml 的目录。如果你想导入一个替代文件(比如 abc.xml)怎么办?可以做吗?如何做?

感谢您的时间。

最佳答案

不,这不可能。 m2e 依赖于 pom.xml 的存在。在 m2e 中具有不同行为的唯一方法是使用 maven 配置文件。使用 m2e 时将自动激活以下内容:

<profile>
<id>m2e</id>
<activation>
<property>
<name>m2e.version</name>
</property>
</activation>
...
</profile>

除非您手动使用 m2e 配置文件,否则您的 CLI 构建将不受影响。

关于eclipse - 如何在 m2eclipse 中导入替代的 pom.xml 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7640143/

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