I have a maven project of the form
<project>
<groupId>com.example.project</groupid>
<artifactId>project</artifactId>
<module>module1</module>
<module>module2</module>
<module>module3</module>
</project>
I am able to run Sonar analysis using maven. The project key is com.example.project:project
I have also installed the Sonar plugin for Eclipse and would like to analyze my project using Eclipse.
My issue is that the Package Explorer in Eclipse shows the modules as projects.
This means that when I click on a particular project/module and perform “Configure” -> Associate with Sonar, I do not get the option to pick the top level project (here labelled “project”) and only the modules.
When I try to input the groupId and artifactId, then those do not match with the sonar project key (com.example.project:project). I think what would work is if I can try to associate the top level project (groupdId: “com.example.project” , artifactid: “project”) as opposed to the modules.
Is there a way of doing that?
I am using Sonar 3.1 and Eclipse Indigo.
You have to associate every project in Eclipse with the corresponding module in Sonar. For instance, in your example, the “module1” Eclipse project should be associated to the “con.example.project:module1” Sonar project.