maven install 报错 Could not find artifact 。。。

父工程下多个子工程之间引用,报错:

[ERROR] Failed to execute goal on project xxx: Could not resolve dependencies for project com.xxx:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.xxx:jar:0.0.1-SNAPSHOT: Failed to read artifact descriptor for com.xxx:jar:0.0.1-SNAPSHOT: Could not find artifact com.xxx: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.

尝试直接在父工程下clean、install解决问题

猜你喜欢

转载自blog.csdn.net/feikillyou/article/details/111912681