如何在m2eclipse中导入替代的pom.xml文件 [英] How do I import an alternative pom.xml file in m2eclipse

查看:175
本文介绍了如何在m2eclipse中导入替代的pom.xml文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

The only possible input is a directory where m2eclipse will automatically scan for pom.xml. What if you want to import an alternative file (say abc.xml)? can it be done and how?

谢谢你的时间。

推荐答案

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

No, it's not possible. m2e relies on the presence of a pom.xml. The only way to have a different behaviour in m2e is to use maven profiles. The following will be activated automatically when using m2e :

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

您的CLI版本将不会受到影响,除非您手动使用m2e配置文件。

Your CLI builds will remain unaffected, unless you manually use the m2e profile.

这篇关于如何在m2eclipse中导入替代的pom.xml文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆