Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: the sample project links

...

  • Getting and installing the cxx-maven-plugin (usage).
  • 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

...