2016-04-24 47 views
4

當導入Maven項目到Eclipse IDE全新安裝, 有一個彈出式問題爲「安裝Maven插件連接」如何預安裝的Eclipse M2E配置程序(不包括在生命週期配置的插件執行)

如果不安裝有將在pom.xml中顯示像未包括生命週期配置

插件執行錯誤:org.eclipse.tycho:第谷包裝-插件:0.20.0:驗證-ID(執行:默認驗證-id,phase:validate)

如何在任何時間安裝m2e配置程序(例如:在爲團隊準備Eclipse包之前,還是在通過網絡進行交互式安裝失敗之後)?

回答

10

您可以隨時通過轉到「窗口>首選項> Maven>發現」來安裝M2Eclipse連接器。

enter image description here

然後當你點擊「打開目錄」,你將看到一個彈出窗口,將顯示所有可用的M2E連接器中安裝的歡迎。你需要選擇你想要的,點擊「完成」並按照標準安裝過程。

enter image description here

3

命令行安裝M2E:

/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://beust.com/eclipse -installIUs org.testng.eclipse.feature.group 
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://findbugs.cs.umd.edu/eclipse -installIUs edu.umd.cs.findbugs.plugin.eclipse.feature.group 
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://eclipse-cs.sourceforge.net/update -installIUs net.sf.eclipsecs.feature.group 
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://coderplus.com/m2e-update-sites/maven-remote-resources-plugin -installIUs com.coderplus.m2e.remoteresourcesfeature.feature.group 
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://ianbrandt.github.io/m2e-maven-dependency-plugin/ -installIUs com.ianbrandt.tools.m2e.mdp.feature.feature.group 
/opt/eclipse/eclipse -application org.eclipse.equinox.p2.director -noSplash -repository http://download.jboss.org/jbosstools/updates/m2e-extensions/m2e-jdt-compiler/ -installIUs org.jboss.tools.m2e.jdt.feature.feature.group 
+0

Nodeclipse安裝程序https://www.npmjs.com/package/nodeclipse#nodeclipse-cli-installer會給出更好的suntax,比如'nodeclipse install org.jboss.tools.m2e.jdt.feature.feature.group from http: // download.jboss.org/jbosstools/updates/m2e-extensions/m2e-jdt-compiler /'但是這個答案有問題,它仍然不知道從哪裏得到完整列表。無論如何爲暗示命令行+1。 –

1

您可以再次通過尋找標記鑑於缺少連接錯誤之一,右鍵點擊它推出的Maven連接器發現嚮導,選中時選擇Quick fixctrl + 1

Markers view

速戰速決將允許您啓動向導發現連接器的所有Maven的錯誤。

相關問題