maven 项目 package 时 ,执行警告报错:
-
[WARNING] The POM for com.xx-base:jar:1.0 is missing, no
dependency information available -
[WARNING] Failed to execute goal on project C-system: Could not resolve dependencies for project service-system:jar:1.0: service-util:jar:1.0 was not found in http://maven.aliyun.com/nexus/content/repositories/central/ during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of alimaven has elapsed or updates are forced -> [Help 1]
解决方案
-
这是因为maven项目子模块在执行安装打包相关操作的时候,没有先执行公共模块。即项目有一个公共模块service-util:jar:1.0; 当前需要执行的模块为service-util:jar:1.0。
-
先找到该模块展开 Lifecycle ➡ install
-
再执行需要打包的模块service-system:jar:1.0 相关的操作。
仅以此记录学习
在执行Maven项目package时遇到警告,提示缺少公共模块service-util:jar:1.0的POM和依赖信息。解决方案是先执行公共模块的install生命周期,然后再打包需要的service-system:jar:1.0模块。
753

被折叠的 条评论
为什么被折叠?



