Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Appium:启动java测试用例时maven出现问题_Java_Android_Maven_Appium - Fatal编程技术网

Appium:启动java测试用例时maven出现问题

Appium:启动java测试用例时maven出现问题,java,android,maven,appium,Java,Android,Maven,Appium,我有要在设备上运行的测试用例(用Java编写)。appium服务器正在运行。现在,我通过命令mvn-Dtest=com.saucelabs.appium.SimpleTest运行了测试用例,但是我得到了以下结果: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building java-cli

我有要在设备上运行的测试用例(用Java编写)。appium服务器正在运行。现在,我通过命令mvn-Dtest=com.saucelabs.appium.SimpleTest运行了测试用例,但是我得到了以下结果:

[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

我不知道我可能遗漏了什么。

我的系统上的网络限制(端口、防火墙等)问题。我试过我朋友的系统,它成功了。

我不完全同意这一点。sun.security.provider.certpath.SunCertPathBuilderException表示您无法使用信任存储证书(java)构建链。因此,发生这种情况的原因如下: 证书可能不是由有效的CA签署的,或者您必须已使用您的信任库文件。(无钥匙) 或者您的代理正在阻止OSCP响应