在线观看不卡亚洲电影_亚洲妓女99综合网_91青青青亚洲娱乐在线观看_日韩无码高清综合久久

鍍金池/ 問答/Java/ maven install的時(shí)候報(bào)錯(cuò) alipay

maven install的時(shí)候報(bào)錯(cuò) alipay

C:\software\jdk\bin\java.exe -Dmaven.multiModuleProjectDirectory=F:\pay\MobilePay "-Dmaven.home=C:\software\Intwlli IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\software\Intwlli IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\software\Intwlli IDEA\IntelliJ IDEA 2018.1.1\lib\idea_rt.jar=58776:C:\software\Intwlli IDEA\IntelliJ IDEA 2018.1.1\bin" -Dfile.encoding=UTF-8 -classpath "C:\software\Intwlli IDEA\IntelliJ IDEA 2018.1.1\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2018.1.1 install -f pom.xml
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for com.mobilepay.example:MobilePay:war:1.0-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.tomcat.maven:tomcat7-maven-plugin is missing. @ line 294, column 15
[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 MobilePay Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for com.alipay:alipay-sdk-java:jar:1.0.0 is missing, no dependency information available
[WARNING] The artifact jdom:jdom:jar:1.1 has been relocated to org.jdom:jdom:jar:1.1
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.395 s
[INFO] Finished at: 2018-07-26T17:47:29+08:00
[INFO] Final Memory: 11M/245M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project MobilePay: Could not resolve dependencies for project com.mobilepay.example:MobilePay:war:1.0-SNAPSHOT: Failure to find com.alipay:alipay-sdk-java:jar:1.0.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central 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


clipboard.png
我按照上面的方法按照到本地maven庫,也成功了

clipboard.png
可是,顯示的還是報(bào)錯(cuò)的,install控制臺(tái)就報(bào)錯(cuò)了

clipboard.png

為什么呢????

回答
編輯回答
尤禮

你好,回復(fù)邀請(qǐng)答題。
首先看看它給的鏈接有沒有參考價(jià)值
MavenHelp1
1、第一行Error中顯示無法解析com.mobilepay.example:MobilePay:war:1.0-SNAPSHOT,
且無法找到支付寶,https://repo.maven.apache.org...
com.alipay:alipay-sdk-java:jar:1.0.0被緩存到本地存儲(chǔ)庫中,resolution找不到更新
你可以試著將本地的jar清除掉,重新install一次。
2、打開-e 或 -x 重新執(zhí)行maven 跟蹤運(yùn)行日志

2017年4月12日 00:13