将 Maven 项目导入 Eclipse - Importing Maven project into Eclipse

问题:

I want to import existing Maven project into Eclipse.我想将现有的 Maven 项目导入 Eclipse。 I found 2 ways to do it:我找到了两种方法:

  1. Through running from command line mvn eclipse:eclipse通过从命令行运行mvn eclipse:eclipse
  2. 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章