Maven install 问题

eclipse 里面,父工程下有多个子工程,安装了一个pojo工程成功,再安装一个interface工程时失败.

[INFO] Scanning for projects...
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building xxx-interface 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.501 s
[INFO] Finished at: 2019-06-12T14:06:02+08:00
[INFO] Final Memory: 7M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project xxx-sellergoods-interface: Could not resolve dependencies for project com.xxx:xxx-sellergoods-interface:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.xxx:xxx-pojo:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.xxx:xxx-pojo:jar:0.0.1-SNAPSHOT: Could not find artifact com.xxx:xxx-parent: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.
[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

此时,直接install父工程解决问题。

posted on 2019-06-12 14:16  成魔的蜘蛛  阅读(280)  评论(0)    收藏  举报

导航