5

如何使用非默认 pom2.xml 在 Eclipse 中导入 Maven 项目(我有 m2e 插件),如下所示:

project
   + src
   + pom2.xml
   + pom.xml

我可以使用 构建项目mvn clean install -f pom2.xml,但无法在 Eclipse 中导入。似乎 m2e 缺少此功能。

编辑:重复:如何在 m2eclipse 中导入替代 pom.xml 文件

4

2 回答 2

0

我尝试并成功地通过以下方式导入了一个以 pom2.xml 作为其 pom 的 maven 项目:

mvn clean install -f pom2.xml

从命令行。

从 eclipse 导入现有项目。

希望这对您有所帮助。

于 2013-04-24T11:31:45.080 回答
0

这是不可能的。

更多信息可以在以下位置找到:如何在 m2eclipse 中导入替代 pom.xml 文件

于 2013-04-24T17:30:21.883 回答