maven多模块打包无法找到公共模块

使用maven插件install公共模块后 查看仓库存在
再install其他模块显示找不到这个公共模块

Failed to execute goal on project chess-auth-common: Could not resolve dependencies for project com.chess:chess-auth-common:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.chess:chess-common:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.chess:chess-common:jar:0.0.1-SNAPSHOT: Could not find artifact com.chess:chessparent:pom:0.0.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.

2个回答

你的maven聚合项目 依赖位置可以加相对路径

是否其他工程没有引入该公共模块,或者引入了,但artifact和公共模块配置的artifact不符合

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!