idea中使用maven的聚合工程时调用同级的聚合工程install后的jar包,install没报错但是使用tomcat7:run后报错:

[INFO] Scanning for projects...
[INFO]

[INFO] ------------------------------------------------------------------------
[INFO] Building pinyougou-sellergoods-service 0.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ pinyougou-sellergoods-service >>>
[WARNING] The POM for com.pinyougou:pinyougou-dao:jar:0.5-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.pinyougou:pinyougou-sellergoods-interface:jar:0.5-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.679 s
[INFO] Finished at: 2020-03-28T13:21:39+08:00
[INFO] Final Memory: 7M/155M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project pinyougou-sellergoods-service: Could not resolve dependencies for project com.pinyougou:pinyougou-sellergoods-service:war:0.5-SNAPSHOT: The following artifacts could not be resolved: com.pinyougou:pinyougou-dao:jar:0.5-SNAPSHOT, com.pinyougou:pinyougou-sellergoods-interface:jar:0.5-SNAPSHOT: Could not find artifact com.pinyougou:pinyougou-dao:jar:0.5-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

Process finished with exit code 1
图片说明

1个回答

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问