有个 springboot 多模块的项目,在打包启动模块报错如下:
[ERROR] Failed to execute goal on project yuqn-boot-start: Could not resolve dependencies for project com.yuqn:yuqn-boot-start:jar:1.0-SNAPSHOT: Failure to find com.yuqn:yuqn-boot-module-system:jar:1.0-SNAPSHOT in artifacts.alfresco.com/nexus/conte… was cached in the local repository, resolution will not be reattempted until the update interval of activiti-releases has elapsed or updates are forced -> [Help 1]
其中启动模块 yuqn-boot-start 在打包的时候,提示项目的依赖存在问题,在activiti版本的更新间隔结束或强制更新之前,不会重新尝试解析。
项目模块如下:
找出问题
仔细一看,在 yuqn-boot-start 模块中,引入了 yuqn-boot-module-system 模块的同时,还引入了该模块下的 system-controller 子模块,导致打包出现问题。
解决办法
将 yuqn-boot-module-system 模块的引入去掉即可。