...
- Getting and installing the cxx-maven-plugin (usage).
- if you use multiple source directory and depends on cxx:addsource goal, you shall use -Dsonar.phase=cxx:addsource option (see Sonar Maven Plugin Project Configuration)
- Setting the language-property and the source directory in your pom:
No Format <properties> ... <sonar.language>c++</sonar.language> ... </properties> <build> ... <sourceDirectory> path </sourceDirectory> ... </build>
- Make sure sonar-server is running
Start the analysis with
"mvn sonar:sonar" or "mvn sonar:sonar -Dsonar.phase=cxx:addsource"
For details see the first sample project.
Ant projects
TODO
Project using miscellaneous build systems
...
For details how to invoke the tools and tie it all together see the second sample project.
External report generation
...

