我使用了一个使用maven插件自动创建项目的工具。
几天前它运行良好,但现在却以某种方式抛出以下错误:
The POM for org.apache.maven.plugins:maven-archetype-plugin:jar:2.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO - runMVNCommand:68] [INFO]
[INFO - runMVNCommand:68] [INFO] ------------------------------------------------------------------------
[INFO - runMVNCommand:68] [INFO] Building Maven Stub Project (No POM) 1
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] ------------------------------------------------------------------------
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] >>> maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom >>>
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] <<< maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom <<<
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] --- maven-archetype-plugin:2.3:generate (default-cli) @ standalone-pom ---
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [WARNING] The POM for org.apache.maven.plugins:maven-archetype-plugin:jar:2.3 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] ------------------------------------------------------------------------
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] BUILD FAILURE
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] ------------------------------------------------------------------------
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] Total time: 2.074s
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] Finished at: Fri Sep 28 10:00:08 GMT+00:00 2018
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] Final Memory: 4M/504M
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [INFO] ------------------------------------------------------------------------
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli) on project standalone-pom: Execution default-cli of goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate failed: A required class was missing while executing org.apache.maven.plugins:maven-archetype-plugin:2.3:generate: org/apache/maven/shared/invoker/MavenInvocationException
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] -----------------------------------------------------
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] realm = plugin>org.apache.maven.plugins:maven-archetype-plugin:2.3
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] urls[0] = file:/mnt/esb/shared_storage/ci/repository/org/apache/maven/plugins/maven-archetype-plugin/2.3/maven-archetype-plugin-2.3.jar
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] urls[1] = file:/mnt/esb/shared_storage/ci/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] Number of foreign imports: 1
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] -----------------------------------------------------: org.apache.maven.shared.invoker.MavenInvocationException
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] -> [Help 1]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR]
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] For more information about the errors and possible solutions, please read the following articles:
09-28-2018 @ 10:00:08 [INFO - runMVNCommand:68] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException