Day to Day Java Java and related Topics

5Nov/100

Sonar, simple installation on Linux

When I started using Hudson CI Continuous integration server, one of the first things I did was creating a Maven site build. The goal was to do code analysis and get test coverage. I had no knowledge of Sonar, so I did it the oldschool way. Configured surefire, cobertura, findbugs maven checkstyle and added them as plugins in Hudson. Running the site build took about an hour and gave me some decent results.

The problem was that I still felt I was lacking a bit of knowledge about my code. A former colleague of mine suggested Sonar. I did not take long until I realised I couldn't wait to try it out.

Here is how I installed Sonar on our Debian Linux development box: