Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 18 Current »


Download and install Maven:

  • 2.2.x or 3.0.x compatible with any version of SonarQube
  • 3.1+ compatible with SonarQube 3.7+

Check compatibility matrix for more details.

Global Settings

Edit the settings.xml file, located in $MAVEN_HOME/conf or ~/.m2, to set the database parameters to be used as well as the SonarQube server URL.




If you get an java.lang.OutOfMemoryError, you can set the SONAR_RUNNER_OPTS environment variable, like this in *nix environments:

On Windows environments, avoid the double-quotes, since they get misinterpreted and combine the two parameters into a single one.


You are now ready to analyze a project with Maven.

  • No labels