【问题标题】:Appium: Issue with maven while launching java test casesAppium:启动java测试用例时出现maven问题
【发布时间】:2014-11-25 14:33:48
【问题描述】:

我有要在设备上运行的测试用例(用 Java 编写)。 appium 服务器正在运行。现在,根据https://saucelabs.com/resources/mobile-test-automation-in-java-with-appium,我通过命令mvn -Dtest=com.saucelabs.appium.SimpleTest test 运行了测试用例,但是,我得到了以下信息:

[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

我不知道我可能会错过什么。

【问题讨论】:

    标签: java android maven appium


    【解决方案1】:

    我系统上的网络限制(端口、防火墙等)的问题。我在我朋友的系统上试了一下,效果很好。

    【讨论】:

      【解决方案2】:

      我不完全同意这一点。 sun.security.provider.certpath.SunCertPathBuilderException 表明您无法使用信任库证书(在 java 中)构建链。因此,这可能由于以下原因而发生: https://repo.maven.apache.org/maven2 证书可能不是由有效的 CA 签发的,或者您必须使用您的信任库文件。 (不太可能) 或者您的代理正在阻止 OSCP 响应?

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2020-12-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2015-09-16
        • 2016-07-18
        • 2020-07-23
        • 1970-01-01
        相关资源
        最近更新 更多