Don't forget this:
<!-- to enable mutliple source directories. The phase must patch with the build-helper-maven-plugin exectution phase -->
<sonar.phase>generate-sources</sonar.phase>
Akram Ben Aissi
added a comment - Resolved: Multiple sources directories are now handled.
See math-php-test pom for configuration
https://svn.codehaus.org/sonar-plugins/trunk/php/math-php-test/pom.xml
Don't forget this:
<!-- to enable mutliple source directories. The phase must patch with the build-helper-maven-plugin exectution phase -->
<sonar.phase>generate-sources</sonar.phase>
Most of the PHP tools can handle inclusion exclusion from the CLI.