【问题标题】:How can i solve this error on Jenkins using Maven as build tool?如何使用 Maven 作为构建工具在 Jenkins 上解决此错误?
【发布时间】:2015-11-27 19:52:16
【问题描述】:

我遇到了一个让我头疼的错误,希望你能帮助我。

我在本地使用 Jenkins,我配置了 Maven 构建并使用 Maven 的配置创建了新作业。当我尝试使用由 Maven 自动生成的超级简单 pom.xml 执行项目的构建时,我收到了如下链接所示的错误消息:

[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved:
  Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5:
  Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2):
  RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available -> [Help 1]

如果我使用 CMD 输入测试目标来运行 maven 项目,它运行正确!

你知道这种情况吗?

【问题讨论】:

  • 请在 Stackoverflow 上显示您遇到的错误,如果您强迫我们去一个单独的网站并查看日志屏幕截图,您将不会得到太多帮助。
  • 你经历过thisthis吗?
  • 如果您点击repo.maven.apache.org/maven2,您将获得 301 重定向。看看this 问题,在其中看到相同的错误,并且被命中的 url 正在返回 301 重定向

标签: java maven jenkins


【解决方案1】:

解决方案非常简单,有点笨,但现在可以了。

只需在计算机中重新安装 JDK!

同样,感谢您的帮助。

【讨论】:

    猜你喜欢
    • 2013-07-03
    • 2020-11-02
    • 1970-01-01
    • 2016-08-05
    • 2019-03-26
    • 1970-01-01
    • 2020-03-07
    • 2021-04-03
    • 2013-11-14
    相关资源
    最近更新 更多