
Mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci Here's how they recommend creating the Sonar database in the documentation: I set up a local MySQL database for this purpose. Sonar works fine with MySQL, Oracle and Postgres. For production use, go to the trouble of setting up a dedicated database for Sonar. Although it comes with a built-in Derby database, you shouldn't really use this for anything else than testing. Sonar stores its data in a real database, so you will need one available.
#INSTALL SONARR UNIX CODE#
You can then go to the Sonar site to view your project's code quality metrics. The Maven Sonar plugin takes this data and sends it to your local Sonar server, where it is processed and incorporated into the Sonar database. First, your Maven project generates XML metrics, about test results, code quality, code coverage, and so forth.

The basic architecture behind Sonar works at two levels. Sonar works with Maven, so you need Maven (2.0.7 is the minimum supported version - it also works fine with Maven 2.1.0). $ ln -s /usr/local/sonar-1.9.2/ /usr/local/sonar I like to create a symbolic link to applications like this to make upgrades easier:
#INSTALL SONARR UNIX DOWNLOAD#
First, download Sonar from the Sonar web site:
#INSTALL SONARR UNIX FOR MAC OS#
In this article, I go through the basic steps involved in setting up your very own Sonar server in a Linux-type environment (it works for Mac OS too, of course), based on my own experience of installing Sonar on a new build server running on CentOS. If you are using Maven to generate code quality metrics with tools like Checkstyle, PMD, FindBugs, Cobertura, and/or Clover, forget the standard Maven reports - use Sonar instead! Sonar gives you a dynamic view of both snapshot and historical data coming from all of these tools. Sonar is a one-stop shop for code quality metrics. If you are serious about Code Quality management, you should know about Sonar. This is where Sonar comes into the picture. Any given metric, such as code coverage or code complexity, can be difficult to interpret in isolation. Code Quality management is an important part of any project, but sometimes it can be difficult to get a global picture.

By code quality metrics, I am referring to coding standards, best practices, complexity, but also to other associated statistics such as the number of unit tests run and the level of code coverage.

Please contact the moderators of this subreddit if you have any questions or concerns.Anyone who has read many of my blog entries or articles will know that I'm a great fan of code quality metrics. I am a bot, and this action was performed automatically. Once your question/problem is solved, please reply to the answer(s) saying '!solved' in the thread. This post has been published and no further action is required for folks to read it. These troubleshooting guides may be useful:

If you did include the logs directly in your post, please edit your post to remove them and provide the logs via a pastebin, Gist or similar site.Īdditionally, please see our FAQ or other Wiki pages for common questions. If logs are applicable to your request, please review the following link. It appears you are requesting assistance and did not provide any linked logs. If not, you'll at least have some useful logs and screenshots that you'll have shared before one of the helpful humans arrives. Hi OP, before a human comes along, please read below and see if you have any luck with troubleshooting or if your issue is covered by a FAQ.
