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 相关的操作。
仅以此记录学习