多module启动报错Could not resolve dependencies for project

3 篇文章 0 订阅

前几天用若依的前后端分离版本,项目能启动,打包发布时异常。提示找不到项目依赖,无法解析artifact。
Could not resolve dependencies for project
The following artifacts could not be resolved
搜索之后才知道需要按照依赖顺序逐个工程进行maven clean install。最后在父工程中package
在这里插入图片描述

报错详情如下

/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home/bin/java -Dmaven.multiModuleProjectDirectory=/Users/x/Project/piaolin-platform/ruoyi-admin -Dmaven.home=/usr/local/maven/apache-maven-3.6.3 -Dclassworlds.conf=/usr/local/maven/apache-maven-3.6.3/bin/m2.conf -Dmaven.ext.class.path=/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/plugins/maven/lib/maven-event-listener.jar -javaagent:/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=50423:/Users/x/Library/Application Support/JetBrains/Toolbox/apps/IDEA-U/ch-0/211.7142.45/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /usr/local/maven/apache-maven-3.6.3/boot/plexus-classworlds.license:/usr/local/maven/apache-maven-3.6.3/boot/plexus-classworlds-2.6.0.jar org.codehaus.classworlds.Launcher -Didea.version=2021.1.1 -s /usr/local/maven/apache-maven-3.6.3/conf/settings.xml -Dmaven.repo.local=/Users/x/.m2/repository package
[INFO] Scanning for projects...
[INFO] 
[INFO] -----------------------< com.ruoyi:ruoyi-admin >------------------------
[INFO] Building ruoyi-admin 3.2.1
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.ruoyi:ruoyi-framework:jar:3.2.1 is missing, no dependency information available
[WARNING] The POM for com.ruoyi:ruoyi-quartz:jar:3.2.1 is missing, no dependency information available
[WARNING] The POM for com.ruoyi:ruoyi-generator:jar:3.2.1 is missing, no dependency information available
[WARNING] The POM for com.ruoyi:piaolin-location:jar:3.2.1 is missing, no dependency information available
[WARNING] The POM for com.ruoyi:piaolin-love:jar:3.2.1 is missing, no dependency information available
[WARNING] The POM for com.ruoyi:piaolin-shot:jar:3.2.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.672 s
[INFO] Finished at: 2021-05-24T16:50:14+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ruoyi-admin: Could not resolve dependencies for project com.ruoyi:ruoyi-admin:jar:3.2.1: The following artifacts could not be resolved: com.ruoyi:ruoyi-framework:jar:3.2.1, com.ruoyi:ruoyi-quartz:jar:3.2.1, com.ruoyi:ruoyi-generator:jar:3.2.1, com.ruoyi:piaolin-location:jar:3.2.1, com.ruoyi:piaolin-love:jar:3.2.1, com.ruoyi:piaolin-shot:jar:3.2.1: Failure to find com.ruoyi:ruoyi-framework:jar:3.2.1 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of public has elapsed or updates are forced -> [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
  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值