鍍金池/ 問答/Java/ maven install失?。?/span>

maven install失敗?

"C:\Program Files\Java\jdk1.8.0_91\bin\java" -Dmaven.multiModuleProjectDirectory=D:\sohuProjects\Extract\mrd-math-extract\task-deliver-center "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\lib\idea_rt.jar=57903:C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\bin" -Dfile.encoding=UTF-8 -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.1.3\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.1.5 install
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.sohu.mrd.weibo:TaskDeliverCenter:jar:1.0-SNAPSHOT
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: junit:junit:jar -> duplicate declaration of version 4.12 @ com.sohu.mrd.weibo:mrd-weibo-extract:1.0-SNAPSHOT, D:\sohuProjects\Extract\mrd-math-extract\pom.xml, line 102, column 21
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: mysql:mysql-connector-java:jar -> duplicate declaration of version 5.1.18 @ com.sohu.mrd.weibo:mrd-weibo-extract:1.0-SNAPSHOT, D:\sohuProjects\Extract\mrd-math-extract\pom.xml, line 118, column 21
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jsoup:jsoup:jar -> duplicate declaration of version 1.10.1 @ com.sohu.mrd.weibo:mrd-weibo-extract:1.0-SNAPSHOT, D:\sohuProjects\Extract\mrd-math-extract\pom.xml, line 123, column 21
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building TaskDeliverCenter 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.sohu.mrd.weibo:weibo-extract-core:jar:1.0-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for com.sohu.mrd.weibo:weibo-extract-queue:jar:1.0-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.999 s
[INFO] Finished at: 2017-11-06T18:08:28+08:00
[INFO] Final Memory: 9M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project TaskDeliverCenter: Could not resolve dependencies for project com.sohu.mrd.weibo:TaskDeliverCenter:jar:1.0-SNAPSHOT: The following artifacts could not be resolved: com.sohu.mrd.weibo:weibo-extract-core:jar:1.0-SNAPSHOT, com.sohu.mrd.weibo:weibo-extract-queue:jar:1.0-SNAPSHOT: Failure to find com.sohu.mrd.weibo:weibo-extract-core:jar:1.0-SNAPSHOT in http://svn.k.sohu.com/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus-releases has elapsed or updates are forced -> [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
回答
編輯回答
司令

ERROR 信息里寫了,下面這倆jar包依賴錯誤:
com.sohu.mrd.weibo:weibo-extract-core:jar:1.0-SNAPSHOT
com.sohu.mrd.weibo:weibo-extract-queue:jar:1.0-SNAPSHOT
把這倆依賴先 本地 mvn install 下,試試看

2017年10月24日 20:35