I'm using sonar-maven-plugin on my local machine (with SonarQube version: 5.6.6):
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sonar-maven-plugin</artifactId>
<version>2.6</version>
</plugin>
And I have configured sonar on the remote build-server with jenkins:
Maven task:
$SONAR_MAVEN_GOAL -Dsonar.host.url=$SONAR_HOST_URL clean package
In the console output I see:
[INFO] --- sonar-maven-plugin:2.6:sonar (default-cli)
INFO: SonarQube Server 5.6.6
But i have different results (I have more bugs and Code Smells on the local machine with the same code)