Interview Questions

How to add a java project to SONAR ?

Follow the steps below to register a java project with SONAR.

1.) Download SONAR
2.) Start the SONAR service , which is usually available in the below url
http://localhost:9000
3.) Add the following tag in your project's pom.xml file

 
    <properties>
    <sonar.host.url>http://localhost:9000</sonar.host.url>
    </properties>
     

4.) Now execute the maven command
mvn SONAR:SONAR
5.) After the successful completion of the step4 the project will be available in SONAR
with the code review violations based on severity.

0
No votes yet
Your rating: None