將 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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章