maven - jetty:run的时候报错,无法依赖子项目!大师解答下谢谢

查看:156
本文介绍了maven - jetty:run的时候报错,无法依赖子项目!大师解答下谢谢的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building ssm-web 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> jetty-maven-plugin:9.3.14.v20161028:run (default-cli) > test-compile @ ssm-web >>>
[WARNING] The POM for com.education:ssm-common:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.education:ssm-config:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.education:ssm-service:jar:0.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.292 s
[INFO] Finished at: 2017-04-27T14:25:29+08:00
[INFO] Final Memory: 7M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ssm-web: Could not resolve dependencies for project com.education:ssm-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.education:ssm-common:jar:0.0.1-SNAPSHOT, com.education:ssm-config:jar:0.0.1-SNAPSHOT, com.education:ssm-service:jar:0.0.1-SNAPSHOT: Could not find artifact com.education: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/confl...

解决方案

日志显示 com.education:ssm-common:jar:0.0.1-SNAPSHOT 依赖解析失败了。maven的依赖库里并没有这个包,如果是自己写的jar包,可以添加为非托管依赖。

这篇关于maven - jetty:run的时候报错,无法依赖子项目!大师解答下谢谢的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆