We are analyzing our Eclipse project with Sonar. Sonar can use different quality rules to analyze main source code and test source code. For this to works it relies on Maven model (sourceDirectory vs testSourceDirectory).
Except if I miss something it seems that sources of a eclipse-test-plugin module are added to the Maven model as (main) sourceDirectory.
Is there any reason for that? I found an issue in bugzilla about preventing duplicate entry in both main and test directory . But it seems the implemented solution was to remove entry in test sources. So how can I configure my build to have my source entry as a test directory only? Should it not be the default for eclipse-test-plugin packaging?