2

I am trying sonar 5.0 with jdk 1.8 .

With Sonar 5.0 I am getting following error for two jenkin version

Jenkins ver. 1.583

[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.5:sonar (default-cli) on project com.ciphercloud.root.core.grp: Unable to register extension com.villagechief.sonar.salesforce.sftest.SFTestSensor: Lorg/apache/commons/configuration/Configuration;: org.apache.commons.configuration.Configuration -> [Help 1]

Jenkins ver. 1.580.3 [ERROR] Plugin org.codehaus.mojo:sonar-maven-plugin:2.9 or one of its dependencies could not be resolved: Failure to find org.codehaus.mojo:sonar-maven-plugin:jar:2.9 in http://172.16.16.86:9081/nexus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]

Is this issue also you are resolving ? If we have known work around to resolve this please suggest.

Thanks in adv for any suggestion in this regard.

Thanks and Regards, Prem

4

1 回答 1

2

通过在您的部分中包含以下内容,尝试明确设置插件版本以匹配您的声纳服务器版本<pluginManagement>

<dependency>
    <groupId>org.codehaus.sonar</groupId>
    <artifactId>sonar-maven-plugin</artifactId>
    <version>5.0</version>
</dependency>
于 2015-05-03T09:09:31.343 回答