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时需要使用绝对路径,而非相对路径。

相关推荐
jaysee-sjc2 天前
【黑马点评】Day02:优惠券秒杀与分布式锁
java·分布式·nginx·spring·node.js·tomcat·maven
星落梦生4 天前
Maven高级(9)
java·maven
sxlishaobin11 天前
Maven Setting详解
java·学习·maven
captain37617 天前
▲统一功能——DispatcherServlet源码分析
java·spring·java-ee·log4j·maven
雪芽蓝域zzs20 天前
第 1 章:IDEA 创建 SpringBoot3.5.16 Maven 项目
java·maven·intellij-idea
雪芽蓝域zzs21 天前
第 1 章:IDEA 全局配置 Maven + 新建 SpringBoot3 Maven 项目
java·maven·intellij-idea
代码什么用21 天前
Maven&Nexus
java·maven
code2cat21 天前
Java工具篇之Maven:从pom.xml到测试通过的JAR
xml·java·maven
CarIise23 天前
Spring 框架:多配置文件、开发方式与 IOC 注解
junit·maven·jar
博风23 天前
eclipse中配置maven,以及在本地使用maven。
java·eclipse·maven