2 qq 36359679 qq_36359679 于 2017.09.02 17:36 提问

maven小白,求大神解答

[ERROR] Failed to execute goal on project xx-manager-web: Could not resolve dependencies for project com.nun:xx-manager-web:war:0.0.1-SNAPSHOT: The following artifacts could not be resolved: com.nun:xx-common:jar:0.0.1-SNAPSHOT, com.nun:xx-manager-interface:jar:0.0.1-SNAPSHOT: Could not find artifact com.nun:xx-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

图片说明图片说明

3个回答

Small_Mouse0
Small_Mouse0   Ds   Rxr 2017.09.02 20:31
已采纳

com.nun:xx-manager-web:war:0.0.1-SNAPSHOT
com.nun:xx-common:jar:0.0.1-SNAPSHOT
com.nun:xx-common:jar:0.0.1-SNAPSHOT
这几个jar的问题,,题主看在哪里配置了
找不到,,估计是没打包放到本地仓库,,,或者是网上下载没有

0.0.1-SNAPSHOT,,,,根据这个我感觉这是你自己搞得jar,,,没打包放到本地仓库,,

右键运行,,maven install即可安装到本地仓库

题主试试,,,,有问题可以追问

qq_36359679
qq_36359679 非常感谢
3 个月之前 回复
qq_29178991
qq_29178991   2017.09.02 19:47

建议将节点中的内容删除,再校验是否以结尾

qq_36359679
qq_36359679 parent错了,但还是不知道错哪了
3 个月之前 回复
qq_29178991
qq_29178991   2017.09.02 19:47

parent节点,和dependencies

Csdn user default icon
上传中...
上传图片
插入图片