Run sonarsouce report plugin through maven

37 Views Asked by At

How can i run sonarsource report plugin through maven command for generating sonar analysis reports?

I know the way to do it through sonar-runner, but can we do it directly through mvn command ?

1

There are 1 best solutions below

0
On

If you have configured all the properties of your sonar analysis in pom.xml, then you just need to run

mvn sonar:sonar

The Maven configuration may be helpful for this.