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 42 Next »

Upgrade guide

Upgrade server

  • Stop the current Sonar server
  • Unzip the new version of Sonar in a fresh directory, let's say {$NEW_SONAR_HOME}
  • Copy and wrapper.conf files from {$OLD_SONAR_HOME}/conf to {$NEW_SONAR_HOME}/conf or configure
  • If you use rules extensions, sonar plugins or your own jdbc drivers, copy /extensions directory from {$OLD_SONAR_HOME} to {$NEW_SONAR_HOME}
  • Backup your database
  • If Sonar is deployed on a JEE application server, repackage the WAR file by executing the script /war/build-war
  • Start the server (or restart the application server)
  • Browse to http://localhost:9000 and follow setup instructions.
  • Launch project analysis to refresh data.

Upgrade process


Upgrade process can take a while depending on the size of projects portfolio. Make sure that nobody accesses Sonar and do not refresh the web page during setup. The web page will be refreshed automatically at the end of upgrade. To monitor the process, checks the logs and / or the console.

Migration is completed when an analysis has been run on project. Only at that point will you get new functionality working for sure.

The first analysis after migrating to 1.11 can be very long, due to a new purge mechanism that was added.

Upgrade Maven plugin

Since release 1.8, you don't have to do anything to upgrade the Sonar Maven plugin. Command is :

To find more about new Maven parameters, check the Advanced parameters section.

  • No labels