首页 > 移动平台 > 详细

maven webapp项目时报错:Could not resolve archetype org

时间:2021-01-09 23:12:28      阅读:34      评论:0      收藏:0      [点我收藏+]
使用IDEA中MAVEN创建webapp报错:

Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved

详细报错如下:

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.282 s
[INFO] Finished at: 2019-01-05T18:29:17+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (E:\apache-maven-3.6.0\repository) -> [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/PluginResolutionException

解决方式:
查看MAVEN中安装repository目录中的:org.apache.maven.plugins:maven-archetype-plugin,对应org=>apche=>maven=>plugins=>maven-archetype-plugin包:
删除目录下的文件,创建的时候才会自动下载远程代码库的jar包。如下图:
技术分享图片

maven webapp项目时报错:Could not resolve archetype org

原文:https://blog.51cto.com/13238147/2585869

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!