maven多模块项目启动工程报错Could not resolve dependencies for project...

自己用maven搭建ssm项目。启动的时候发生错误,以下是日志信息。

[INFO] Total time: 1.140 s
[INFO] Finished at: 2019-04-25T15:09:26+08:00
[INFO] Final Memory: 7M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project manager: Could not resolve dependencies for project test-ssm:manager:pom:0.0.1-SNAPSHOT: Could not find artifact test-ssm:common:jar: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.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

日志错误提示:

Failed to execute goal on project manager: Could not resolve dependencies for project test-ssm:manager:pom:0.0.1-SNAPSHOT: Could not find artifact test-ssm:common:jar:0.0.1-SNAPSHOT -> [Help 1]

意思是:

未能在项目管理器上执行目标:无法解析项目测试SSM的依赖项:管理器:pom:0.0.1-快照:找不到项目测试SSM:common:jar:0.0.1-快照->[帮助1]

解决方法:

       在eclipse中选中common项目模块——>右键——>Run As——>Maven install。将common打成jar包。

完成后日志显示如下:

再启动就OK了。 

  • 2
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 2
    评论
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值