2014-11-25 63 views
0

我有用於在設備上運行的測試用例(用Java編寫)。 appium服務器正在運行。現在,按照https://saucelabs.com/resources/mobile-test-automation-in-java-with-appium我跑了通過命令mvn -Dtest=com.saucelabs.appium.SimpleTest test測試用例不過,後來我得到以下幾點:Appium:發佈java測試用例時發佈maven

[INFO] Scanning for projects... 
[INFO] 
[INFO] ------------------------------------------------------------------------ 
[INFO] Building java-client 2.1.0 
[INFO] ------------------------------------------------------------------------ 
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.6/maven-resources-plugin-2.6.pom 
[INFO] ------------------------------------------------------------------------ 
[INFO] BUILD FAILURE 
[INFO] ------------------------------------------------------------------------ 
[INFO] Total time: 10.669 s 
[INFO] Finished at: 2014-11-25T17:16:59+05:30 
[INFO] Final Memory: 4M/14M 
[INFO] ------------------------------------------------------------------------ 
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources- 
plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): sun.security.validator.ValidatorException: PKIX path building failed: 
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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/PluginResolutionException 

我不知道什麼我可能會丟失。

回答

0

我的系統上的網絡限制(端口,防火牆等)的問題。我嘗試了我的朋友的系統,它的工作。

0

我不完全同意這一點。 sun.security.provider.certpath.SunCertPathBuilderException表明您無法使用信任存儲區證書(以java語言編寫)構建鏈。所以這可能會發生,原因如下: https://repo.maven.apache.org/maven2證書可能不會被有效的CA簽名,或者您必須使用您的信任庫文件進行播放。 (unlikey) 或者你的代理阻止了OSCP響應?