【问题标题】:getting maven error while running the Selenium tests form Jenkins从 Jenkins 运行 Selenium 测试时出现 maven 错误
【发布时间】:2016-02-16 04:00:37
【问题描述】:

我有一个 Maven 项目并在其中编写了一些 Selenium TestNG 脚本。 Jenkins 安装在 Linux 服务器上,当我尝试从 Jenkins 运行 Selenium 测试时,出现此 Maven 错误,

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.5 or one of its dependencies could not be resolved: 
        Failed to read artifact descriptor for 
        org.apache.maven.plugins:maven-compiler-plugin:jar:3.5:
          Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.5 from/to central (https://repo.maven.apache.org/maven2):
            Connect to repo.maven.apache.org:443 [repo.maven.apache.org/23.235.47.215] failed: Connection timed out -> [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
Build step 'Invoke top-level Maven targets' marked build as failure

【问题讨论】:

    标签: maven jenkins


    【解决方案1】:

    您的 Jenkins 服务器未能从 Maven 存储库下载依赖项。

    错误信息中提到了这一点:

    连接到 repo.maven.apache.org:443 [repo.maven.apache.org/23.235.47.215] 失败:连接超时

    这可能是您的服务器暂时出现连接问题,因此您可以重试。

    如果此错误持续发生,请与您的网络管理员确认 Jenkins 服务器有权访问该主机名和端口,因为它可能被防火墙阻止。

    【讨论】:

      猜你喜欢
      • 2011-01-25
      • 1970-01-01
      • 2017-12-13
      • 1970-01-01
      • 2017-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-10-08
      相关资源
      最近更新 更多