How to change where the analysis output is uploaded when running from local maven?

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    Version 6.7.5 (build 38563)

  • what are you trying to achieve
    Trying to run a sonarqube scan locally then upload the artifact to sonarqube in a unique location.

  • what have you tried so far to achieve this
    I have run sonarqube with the following:

mvn sonar:sonar

My pom is com.groupname:projectname:4.0.0

And it will upload my artifact to the following location:

I would like this to be uploaded to something like this:

So that my scan doesn’t overwrite someone else’s. How can I do that?

ah it’s:



I feel it’s worth pointing out that you seem to be doing branch analysis, which is supported by Developer Edition($).


Well i’m a bit of a newb here. I’m running the sonar:sonar target on my mvn project and its generating an entire analysis file based on the entire project.

are you saying there is a way to run this against a base branch?

I was actually about to open a new question about this.


Here are the docs on that. You won’t get a restricted analysis scope, but you will get other, branch-context-sensitive features.