栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Java

maven 报错 To see the full stack trace of the errors, re-run Maven with the -e switch.Re-run Maven usi

Java 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

maven 报错 To see the full stack trace of the errors, re-run Maven with the -e switch.Re-run Maven usi

今天从新安装idea后出现的问题

错误信息:

D:devJavajdk1.8binjava.exe -Dmaven.multiModuleProjectDirectory=E:CiHaitestonline_chatuser_serve -Dmaven.home=D:devmavenapache-maven-3.3.9 -Dclassworlds.conf=D:devmavenapache-maven-3.3.9binm2.conf "-Dmaven.ext.class.path=D:devIDEAIntelliJ IDEA 2021.1.2pluginsmavenlibmaven-event-listener.jar" "-javaagent:D:devIDEAIntelliJ IDEA 2021.1.2libidea_rt.jar=56356:D:devIDEAIntelliJ IDEA 2021.1.2bin" -Dfile.encoding=UTF-8 -classpath D:devmavenapache-maven-3.3.9bootplexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2021.1.2 --update-snapshots -s D:devmavenapache-maven-3.3.9confsettings.xml -Dmaven.repo.local=D:devmavenrepository install
[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building user_serve 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.example:chat_common:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.382 s
[INFO] Finished at: 2021-12-29T11:12:38+08:00
[INFO] Final Memory: 31M/307M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project user_serve: Could not resolve dependencies for project org.example:user_serve:jar:1.0-SNAPSHOT: Could not find artifact org.example:chat_common:jar:1.0-SNAPSHOT -> [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/DependencyResolutionException

Process finished with exit code 1

解决方法:
首先在maven中的settings.xml中里设置新版HTTPS的阿里云仓库

    
aliyunmaven    
*    
阿里云公共仓库    
https://maven.aliyun.com/repository/public



最后clean就会进行正常下载了

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/684483.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号