问题:
I want to import existing Maven project into Eclipse.我想将现有的 Maven 项目导入 Eclipse。 I found 2 ways to do it:我找到了两种方法:
- Through running from command line
mvn eclipse:eclipse
通过从命令行运行mvn eclipse:eclipse
- To install Maven Eclipse plugin from Eclipse.从 Eclipse 安装 Maven Eclipse 插件。
What is the difference between the both and which one is preferable?两者之间有什么区别,哪个更可取?
If I install Maven Eclipse plugin through the Eclipse menu Help -> Install New Software , do I still need to modify my pom.xml
to include the Maven Eclipse plugin in the plugins section?如果我通过 Eclipse 菜单Help -> Install New Software安装 Maven Eclipse 插件,我还需要修改我的pom.xml
以在插件部分包含 Maven Eclipse 插件吗?
解决方案:
参考一: https://en.stackoom.com/question/8eBS参考二: https://stackoom.com/question/8eBS