問題:
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