如何预安装 Eclipse m2e 配置器(生命周期配置未涵盖的插件执行)
How to preinstall Eclipse m2e configurators (Plugin execution not covered by lifecycle configuration)
将 Maven 项目导入 Eclipse IDE 全新安装时,
"Setup Maven plugin connections"
有一个弹出式问题
如果不安装会出现pom.xml如
的错误
Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:tycho-packaging-plugin:0.20.0:validate-id (execution: default-validate-id, phase: validate)
如何随时安装 m2e 配置器(例如,在为团队准备 Eclipse 包之前,或在交互式安装因网络而失败后再次安装)?
您可以随时前往 "Window > Preferences > Maven > Discovery" 安装 M2Eclipse 连接器。
然后当您单击 "Open Catalog" 时,您将看到一个弹出窗口,其中将显示所有可用的 M2E 连接器以供安装。您需要 select 您想要的那个,单击 "Finish" 并按照标准安装过程进行操作。
从命令行安装 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
您可以再次启动 Maven 连接器发现向导,方法是在“标记”视图中找到丢失的连接器错误之一,右键单击它,然后在选中时选择 Quick fix
或 ctrl + 1
。
快速修复将允许您启动向导以发现所有 Maven 错误的连接器。
将 Maven 项目导入 Eclipse IDE 全新安装时, "Setup Maven plugin connections"
有一个弹出式问题如果不安装会出现pom.xml如
的错误Plugin execution not covered by lifecycle configuration: org.eclipse.tycho:tycho-packaging-plugin:0.20.0:validate-id (execution: default-validate-id, phase: validate)
如何随时安装 m2e 配置器(例如,在为团队准备 Eclipse 包之前,或在交互式安装因网络而失败后再次安装)?
您可以随时前往 "Window > Preferences > Maven > Discovery" 安装 M2Eclipse 连接器。
然后当您单击 "Open Catalog" 时,您将看到一个弹出窗口,其中将显示所有可用的 M2E 连接器以供安装。您需要 select 您想要的那个,单击 "Finish" 并按照标准安装过程进行操作。
从命令行安装 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
您可以再次启动 Maven 连接器发现向导,方法是在“标记”视图中找到丢失的连接器错误之一,右键单击它,然后在选中时选择 Quick fix
或 ctrl + 1
。
快速修复将允许您启动向导以发现所有 Maven 错误的连接器。