Setup SonarQube server and execute the following command from the project root directory:
mvn sonar:sonar
For more details, read the Maven Plugin documentation.