Hi,
I already tested this configuration with different projects and I got a maven build failure with the message :
[ERROR] Failed to execute goal org.codehaus.mojo:sonar-maven-plugin:2.6:sonar (default-cli) on project ***: File [relative=***, abs=***] c
an't be indexed twice. Please check that inclusion/exclusion patterns produce disjoint sets for main and test files -> [Help 1]
My environment : SonarQube 4.5.2, sonar-java 3.1, sonar-javascript 2.3, sonar-css 1.1, sonar-web 2.3, Maven 3.2.5, sonar-maven-plugin 2.6
Maven projects with multiple directories : src/main/java, src/test/java, src/webapp
I need to use the following parameters to complete the analysis:
-Dsonar.sources=. -Dsonar.tests.inclusions=src/test/**/* -Dsonar.exclusions=**/test/**/*
Regards,
Denis