Cannot find sonar-server-common.jar

(Campbell Gunn) #1

Issue is trying to build a plugin using 7.2.1 sonarqube plugin.
I get an error that sonar-server-common.jar (version 7.2.1) cannon be found.

When is it going to be made available?


(Tibor Blenessy) #2


it’s not very clear what are you trying to achieve. Can you please explain in more detail what kind of plugin are you trying to build (custom rule, something else?) and if you have some relevant logs share them here.

(Campbell Gunn) #4

The error I am getting is the following:

[ERROR] Failed to execute goal on project test: Could not resolve dependencies for project org.sonarsource:test:sonar-plugin:1.0.0: Failure to find org.sonarsource.sonarqube:sonar-server-common:jar:7.2.1 in was cached in the local repository, resolution will not be reattempted until the update interval of has elapsed or updates are forced -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

It worked fine when I was using 7.1 of the <sonar.sonarQubeMinVersion>7.1</sonar.sonarQubeMinVersion>


(Julien Henry) #5


Why are you depending on org.sonarsource.sonarqube:sonar-server-common:jar:7.2.1 ? Can you show us your plugin dependency tree?