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

Upgrade guide

Upgrade the server

  • Stop the current Sonar server
  • Unzip the new version of Sonar in a new directory, let's say {$NEW_SONAR_HOME}
  • Copy and wrapper.conf files from {$OLD_SONAR_HOME}/conf to {$NEW_SONAR_HOME}/conf
  • If you have extensions, copy /extensions directory from {$OLD_SONAR_HOME} to {$NEW_SONAR_HOME}
  • Backup your database
  • If Sonar is deployed on JEE applications, repackage the WAR file by executing the script /war/build-war
  • Start the server
  • Clear browser cache (see issue SONAR-743).
  • Browse to http://localhost:9000 and follow setup instructions.

    During upgrade


    The upgrade process can take a while, depending on the size of the projects portfolio. Do not refresh the web page after having launched the setup process as it will refresh automatically when the installation process is completed and the list of projects will appear. If you wish to monitor the process, you can look at the log file.

    Using clover


    The way code coverage tools are handled has slightly changed in version 1.10. The main difference is that Sonar now only authorizes one tool to be defined in the settings (as before you could use specify several) since you override this information at project level.

    If you are migrating from before 1.10 to after 1.10 and had defined "clover,cobertura", you will need to re-specify your plugin configuration.

    Upgrade the 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