无法加载 mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse'

Unable to load the mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse'

当我们尝试从命令行 运行 mvn eclipse:eclipse 时,出现以下错误:

Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse': Unable to load the mojo 'org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse' in the plugin 'org.apache.maven.plugins:maven-eclipse-plugin'. A required class is missing: org/codehaus/plexus/resource/loader/ResourceNotFoundException

感谢任何解决此问题的帮助。

谢谢,

Apache Maven Eclipse Plugin 已退休:

Users are advised to use m2e, the Eclipse Maven Integration instead of this plugin, as it can more closely resemble the actual build and runtime classpaths as described in the project pom.xml - among other advantages.