網(wǎng)站開發(fā)補充協(xié)議成人短期培訓(xùn)能學(xué)什么
一、背景
在A模塊中引入B模塊,C服務(wù)引入A模塊但是B模塊沒有傳遞進(jìn)來。
二、排查
使用mvn clean install -Dmaven.test.skip=true查看打包日志信息,通過搜索A模塊名稱,出現(xiàn)如下警告信息:
[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依賴樹,執(zhí)行如下命令:
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時需要使用絕對路徑,而非相對路徑。