开发者社区> 问答> 正文

spring-boot mvn 聚合项目 编译报错?报错

[ERROR] Failed to execute goal on project test-user: Could not resolve dependencies for project com.mine:test-user🏺1.0.1-SNAPSHOT: Failed to collect dependencies at com.mine:test-repo🏺1.0.1-SNAPSHOT: Failed to read artifact descriptor for com.mine:test-repo🏺1.0.1-SNAPSHOT: Could not find artifact com.mine:test:pom:1.0.1-SNAPSHOT -> [Help 1]
[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

项目结构 com.mine.test[parent]
com.mine.test-common,

com.mine.test-repo,

com.mine.test-user   为三个子模块,

test-common 依赖test-repo,test-user 依赖test-common 和 test-repo

在编译test-common 和 test-user 是都报错
请问是怎么回事?

展开
收起
爱吃鱼的程序员 2020-06-07 22:41:51 473 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    先编译test-repo并且install到本地仓库

    然后在编译test-common

    cd test-repo

    mvninstall

    cd test-common

    mvninstall

    要吧com.mine:test-repo:jar:1.0.1-SNAPSHOT这个东西安装到本地或者私服

    2020-06-08 11:14:50
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
云栖社区特邀专家徐雷Java Spring Boot开发实战系列课程(第20讲):经典面试题与阿里等名企内部招聘求职面试技巧 立即下载
微服务架构模式与原理Spring Cloud开发实战 立即下载
阿里特邀专家徐雷Java Spring Boot开发实战系列课程(第18讲):制作Java Docker镜像与推送到DockerHub和阿里云Docker仓库 立即下载

相关实验场景

更多