maven依赖无法传递问题排查

一、背景

在A模块中引入B模块,C服务引入A模块但是B模块没有传递进来。

二、排查

使用mvn clean install -Dmaven.test.skip=true查看打包日志信息,通过搜索A模块名称,出现如下警告信息:

复制代码
[WARING] The POM for A:jar:0.0.1-SNAPSHOT is invalid, transitive dependencies(if any)will not be available, enable debug logging for more details

查看jar依赖树,执行如下命令:

mvn -X dependency:tree>tree.txt

复制代码
WARNING] The POM for com.ksyun.dc:meta-source:jar:0.0.1-SNAPSHOT is invalid, transitive dependencies (if any) will not be available: 2 problems were encountered while building the effective model for A:jar:0.0.1-SNAPSHOT
[ERROR] 'dependencies.dependency.systemPath' for com.oracle:ojdbc6:jar must specify an absolute path but is ${project.basedir}/lib/ojdbc6-11.2.0.4.0.jar @
[ERROR] 'dependencies.dependency.systemPath' for com.ali:oceanbase:jar must specify an absolute path but is ${project.basedir}/lib/oceanbase-client-1.1.5.jar @

显示引入本地jar时需要使用绝对路径,而非相对路径。

相关推荐
sunshine22 girl5 小时前
Java学习一 环境配置3 Idea中的maven仓库,pom.xml文件配置
学习·maven·intellij-idea
钱栈up9 小时前
mvn compile卡住半小时:定位并修复隐藏的类型不匹配编译错误
java·后端·maven
谢亮_vipxieliang11 小时前
ValidX与Maven/Gradle集成配置指南
java·spring boot·spring·maven·hibernate
砚底藏山河1 天前
存储选型实战:CSV-SQLite-MySQL同机基准(魔码量化实战 #02)
java·数据库·python·金融·maven
蚂蚁雅嘿2 天前
maven标签日常总结
java·maven
菠萝加点糖2 天前
Maven 坐标系统说明
java·maven
砚底藏山河2 天前
拉数管道设计:从一次性脚本到可重启的数据流水线(魔码量化实战 #01)
java·数据库·python·金融·maven
卓怡学长3 天前
w157基于springboot北部湾地区助农平台
java·spring boot·spring·maven·intellij-idea
IT界的老黄牛3 天前
Jenkins 构建卡了 23 天,abort 按钮点了没用
jenkins·maven·prometheus·告警·排查·ci-cd
卓怡学长4 天前
w156一周穿搭App的设计与实现
java·spring boot·spring·maven·intellij-idea