将maven项目导入Eclipse IDE全新安装时, 有一个弹出式问题“Setup Maven插件连接”
如果不安装,pom.xml中会显示错误,如
生命周期配置未涵盖插件执行:org.eclipse.tycho:tycho-packaging-plugin:0.20.0:validate-id(执行:default-validate-id,阶段:验证)
如何随时安装m2e配置程序(例如,在为团队准备Eclipse程序包之前,或者在交互式安装通过网络故障后再次安装)?
答案 0 :(得分:13)
您可以随时转到" Window>安装M2Eclipse连接器。偏好> Maven>发现"
然后当您单击"打开目录"时,您将看到一个弹出窗口,其中将显示要安装的所有可用M2E连接器。你需要选择你想要的那个,点击"完成"并遵循标准安装过程。
答案 1 :(得分:4)
从命令行安装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
答案 2 :(得分:1)