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
3.) Add the following tag in your project's pom.xml file
4.) Now execute the maven command
5.) After the successful completion of the step4 the project will be available in SONAR
with the code review violations based on severity.