idea_maven聚合工程引用不到jar包

ZDdL 2020-03-21 05:59:08

有多个工程,其中 common 工程 的输出的jar 包中代码 被webServer 工程中代码引用;
<dependency>
<dependency>
<groupId>com.test</groupId>
<artifactId>common</artifactId>
<version>${test.version}</version>
</dependency>

先把 common工程编译,打包, 清理,安装了,在本地仓库的目录下可以看到 common 的jar正确安装到了; 编译webServer 工程出错; 在webServer 工程 project settings->modules->dependencies 设置依赖common 工程依然出错;


[ERROR] Failed to execute goal on project webServer: Could not resolve dependencies for project com.test:webServer:war:1.0: Failed to collect dependencies at com.test:common:jar:1.0: Failed to read artifact descriptor for com.test:common:jar:1.0: Fai
lure to find com.test:parent:pom:1.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
...全文
345 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
ZDdL 2020-03-23
  • 打赏
  • 举报
回复
UP 哪位兄弟帮解答一下啊

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧