无法运行jacoco-gerrit-maven-plugin

时间:2018-11-13 14:29:40

标签: maven jenkins plugins gerrit jacoco

由于无法找到jacoco-gerrit-maven-plugin(https://github.com/stepanv/jacoco-gerrit-maven-plugin)的JAR工件,因此决定构建它。 为此,需要更新POM.xml。 我使用的POM文件在这里可用: https://gist.github.com/cedrico2016/75ccbd6847afeabd92583154bad1930e

我用mvn软件包相应地构建了jar。

我有一个詹金斯(Jenkins)工作,我尝试按照所述方式运行插件 net.uvavru.maven.plugin:jacoco-gerrit-maven-plugin:jacoco-to-gerrit -Djacoco.execFile = target / jacoco.exec -Dgerrit.password = ***** -Dgerrit.port = 8080 -Dgerrit。 username = robot -Dgerrit.host = gerrit.someorg.com

maven 3.5已安装在我的jenkins服务器上。

我遇到以下错误:

[ERROR] Failed to execute goal net.uvavru.maven.plugin:jacoco-gerrit-maven-plugin:1.0:jacoco-to-gerrit (default-cli) on project intermodal-core: Execution default-cli of goal net.uvavru.maven.plugin:jacoco-gerrit-maven-plugin:1.0:jacoco-to-gerrit failed: A required class was missing while executing net.uvavru.maven.plugin:jacoco-gerrit-maven-plugin:1.0:jacoco-to-gerrit: javax/ws/rs/core/Configuration
[ERROR] -----------------------------------------------------
[ERROR] realm =    plugin>net.uvavru.maven.plugin:jacoco-gerrit-maven-plugin:1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/root/.m2/repository/net/uvavru/maven/plugin/jacoco-gerrit-maven-plugin/1.0/jacoco-gerrit-maven-plugin-1.0.jar
[ERROR] urls[1] = file:/root/.m2/repository/org/codehaus/plexus/plexus-utils/1.1/plexus-utils-1.1.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import  from realm ClassRealm[maven.api, parent: null]]
[ERROR] 
[ERROR] -----------------------------------------------------: javax.ws.rs.core.Configuration
[ERROR] -> [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/PluginContainerException

在再次开始执行詹金斯作业之前,我已经尝试删除〜/ .m2 /存储库,但是出现了相同的错误。 任何解决方法。

如果有人还可以为我提供此插件的JAR文件,则将很有帮助,因为我找不到它。

0 个答案:

没有答案