[WARNING] The POM for com.tenyears:base-common:jar:1.0 is invalid, transitive dependen

[WARNING] The POM for com.tenyears:base-common:jar:1.0 is invalid, transitive dependen

 

很明显,引用的模块,缺少架包。

1 运行

mvn -X dependency:tree>tree.txt

mvn -X install

mvn -X package等等,只要加上-X就能打印详情

 

2 找到tree.txt中的详细情况,

在这个[WARNING] 之后就能看到。

[WARNING] The POM for com.tenyears:base-common:jar:1.0 is invalid, transitive dependencies (if any) will not be available: 5 problems were encountered while building the effective model for com.tenyears:base-common:1.0
[ERROR] 'dependencies.dependency.version' for org.bytedeco:javacpp-platform:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for org.bytedeco:opencv-platform:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for org.bytedeco:ffmpeg-platform:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for org.bytedeco:opencv-platform-gpu:jar is missing. @ 
[ERROR] 'dependencies.dependency.version' for org.bytedeco:javacv-platform:jar is missing. @ 

 

这个问题,具体原因不清楚,

但是有解决方案。

我的主模块,引用了common模块。

而在common模块中,需要添加架包的版本号。

直接通过父类的pom继承的,但在common架包中,还是需要版本号,不然就报这个。

[WARNING] The POM for com.tenyears:base-common:jar:1.0 is invalid, transitive dependen

 

上一篇:Hive Join 优化之 Map Join


下一篇:Android JNI c/c++调用java 无需新建虚拟机