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

相关推荐
weixin_4365250719 小时前
Windows - Maven 安装到 IDEA 配置全流程
java·maven·intellij-idea
Coding_Doggy21 小时前
苍穹外卖是如何从0搭建一个标准的 Maven 多模块项目的?
java·数据库·maven
天黑请闭眼1 天前
Java:Maven下载依赖后,删除pom依赖坐标无法去除依赖
maven
siriuuus2 天前
Maven 核心概念及生命周期
java·maven
猫头虎2 天前
解决升级IDEA2025.2后,每次打开Maven项目爆红的问题:Windows和Mac解决方案
java·ide·macos·maven·intellij-idea·idea·intellij idea
ScriptBIN3 天前
管理和构建Java项目的工具--Maven
java·maven
pengzhuofan3 天前
第10章 Maven
java·maven
百锦再3 天前
对前后端分离与前后端不分离(通常指服务端渲染)的架构进行全方位的对比分析
java·开发语言·python·架构·eclipse·php·maven
5pace4 天前
【JavaWeb|第一篇】Maven篇
java·maven
半梦半醒*4 天前
Jenkins流水线项目发布
运维·ci/cd·tomcat·jenkins·maven·运维开发