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

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

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就会进行正常下载了

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5685032.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-17
下一篇 2022-12-17

发表评论

登录后才能评论

评论列表(0条)

保存