如何使用非默认 pom2.xml 在 Eclipse 中导入 Maven 项目(我有 m2e 插件),如下所示:
project
+ src
+ pom2.xml
+ pom.xml
我可以使用 构建项目mvn clean install -f pom2.xml
,但无法在 Eclipse 中导入。似乎 m2e 缺少此功能。
如何使用非默认 pom2.xml 在 Eclipse 中导入 Maven 项目(我有 m2e 插件),如下所示:
project
+ src
+ pom2.xml
+ pom.xml
我可以使用 构建项目mvn clean install -f pom2.xml
,但无法在 Eclipse 中导入。似乎 m2e 缺少此功能。
我尝试并成功地通过以下方式导入了一个以 pom2.xml 作为其 pom 的 maven 项目:
mvn clean install -f pom2.xml
从命令行。
从 eclipse 导入现有项目。
希望这对您有所帮助。
这是不可能的。
更多信息可以在以下位置找到:如何在 m2eclipse 中导入替代 pom.xml 文件