gpt4 book ai didi

Jenkins 构建失败,Cobertura 错误

转载 作者:行者123 更新时间:2023-12-02 10:22:43 25 4
gpt4 key购买 nike

我尝试构建一个作业,但它返回以下错误:

> Failed to execute goal
> org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (default-cli)
> on project addressbook: Execution default-cli of goal
> org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin
> org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its
> dependencies could not be resolved: Could not find artifact
> com.sun:tools:jar:0 at specified path
> /var/lib/jenkins/tools/hudson.model.JDK/myjava/../lib/tools.jar ->
> [Help 1]

知道如何解决吗?

最佳答案

我猜有问题的jdk高于8,Cobertura仍然不支持:https://github.com/mojohaus/cobertura-maven-plugin/issues/30

[ERROR] Failed to execute goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument (verification) on project generex: Execution verification of goal org.codehaus.mojo:cobertura-maven-plugin:2.7:instrument failed: Plugin org.codehaus.mojo:cobertura-maven-plugin:2.7 or one of its dependencies could not be resolved: Could not find artifact com.sun:tools:jar:0 at specified path /usr/local/lib/jvm/openjdk11/../lib/tools.jar

我不得不切换到 https://www.jacoco.org/jacoco/相反。

关于Jenkins 构建失败,Cobertura 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51753971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com