maven install不成功

maven install不成功

"C:\Program Files\Java\jdk1.8.0_171\bin\java.exe" -Dmaven.multiModuleProjectDirectory=E:\UCLOUD\imooc\foodiedev "-Dmaven.home=E:\InteliJ_IDEA\IntelliJ IDEA Community Edition 2018.3.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=E:\InteliJ_IDEA\IntelliJ IDEA Community Edition 2018.3.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:E:\InteliJ_IDEA\IntelliJ IDEA Community Edition 2018.3.6\lib\idea_rt.jar=59871:E:\InteliJ_IDEA\IntelliJ IDEA Community Edition 2018.3.6\bin" -Dfile.encoding=UTF-8 -classpath "E:\InteliJ_IDEA\IntelliJ IDEA Community Edition 2018.3.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.3.6 install

[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Build Order:

[INFO] 

[INFO] foodie-dev

[INFO] foodie-dev-common

[INFO] foodie-dev-pojo

[INFO] foodie-dev-mapper

[INFO] foodie-dev-service

[INFO] foodie-dev-api

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building foodie-dev 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ foodie-dev ---

[INFO] Installing E:\UCLOUD\imooc\foodiedev\pom.xml to C:\Users\jidongsi\.m2\repository\com\imooc\foodie-dev\1.0-SNAPSHOT\foodie-dev-1.0-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building foodie-dev-common 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] 

[INFO] --- maven-install-plugin:2.4:install (default-install) @ foodie-dev-common ---

[INFO] Installing E:\UCLOUD\imooc\foodiedev\foodie-dev-common\pom.xml to C:\Users\jidongsi\.m2\repository\com\imooc\foodie-dev-common\1.0-SNAPSHOT\foodie-dev-common-1.0-SNAPSHOT.pom

[INFO]                                                                         

[INFO] ------------------------------------------------------------------------

[INFO] Building foodie-dev-pojo 1.0-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] ------------------------------------------------------------------------

[INFO] Reactor Summary:

[INFO] 

[INFO] foodie-dev ......................................... SUCCESS [  0.588 s]

[INFO] foodie-dev-common .................................. SUCCESS [  0.017 s]

[INFO] foodie-dev-pojo .................................... FAILURE [  0.143 s]

[INFO] foodie-dev-mapper .................................. SKIPPED

[INFO] foodie-dev-service ................................. SKIPPED

[INFO] foodie-dev-api ..................................... SKIPPED

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 0.959 s

[INFO] Finished at: 2021-02-21T18:25:18+08:00

[INFO] Final Memory: 10M/245M

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal on project foodie-dev-pojo: Could not resolve dependencies for project com.imooc:foodie-dev-pojo:jar:1.0-SNAPSHOT: Could not find artifact com.imooc:foodie-dev-common:jar:1.0-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

[ERROR] 

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn <goals> -rf :foodie-dev-pojo


正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

1回答
风间影月 2021-02-21 18:57:45

不要一下子搞这么多,先搞两个子工程试试看。
肯定是哪个细节配置不对。看错误是artifact写错了。

  • 跟着视频多试几次。第一次搞聚合工程的确会这样
    2021-02-21 18:58:11
问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师