| Info | ||
|---|---|---|
| ||
No violations will be created by running an analysis, external reports must be created first created. See Generate Violations Reports for Supported Tools |
...
- Getting and installing the cxx-maven-plugin (usage).
- if you use multiple source directory and depends depend 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"
...

