mvn archetype:create-from-project报错,Invoker process ended with result different than 0!

Thirza ·
更新时间:2024-11-13
· 625 次阅读

mvn archetype:create-from-project报错,Invoker process ended with result different than 0!

从现有项目构建工程模板,执行命令 mvn archetype:create-from-project 报错

[ERROR] The specified user settings file does not exist: /Users/haiyoung/.m2/settings.xml ... ... Invoker process ended with result different than 0! [ERROR] Error executing Maven. [ERROR] The specified user settings file does not exist: /Users/haiyoung/.m2/settings.xml [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary for xxx 1.0-SNAPSHOT: [INFO] ...... ...... [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.219 s [INFO] Finished at: 2020-02-18T16:57:28+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:3.1.2:create-from-project (default-cli) on project xxx: Invoker process ended with result different than 0! -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

该问题是由于用户的.m2目录下缺少maven的配置文件,添加该配置文件后,命令正常执行。


作者:Haiyoung



result process FROM with create project

需要 登录 后方可回复, 如果你还没有账号请 注册新账号
相关文章