I'm using Maven And Sonar with eclipse. I already have my maven projects on LocalHost 9000. But when i go to eclipse configure>associate with sonar says that my groupId is empty. I think thats not supposed to happen. Anybody know how to fix this? Thanks
3.1.groupId – a unique base name of the company or group that created the project. artifactId – a unique name of the project. version – a version of the project.
groupId uniquely identifies your project across all projects. A group ID should follow Java's package name rules. This means it starts with a reversed domain name you control.
I encountered the same issue, the tricks here are:
So, you need to 1) change the sonar project key to the naming convention above, 2) change the eclipse project name to the artifactid. Then eclipse will be able to automatically link your eclipse project to sonar project when your click the button "Find on server".
Few things to check:-
groupId
is actually there in your pom.xml
.artifactId
and the eclipse project name are the same.groupId
and artifactId
in the associate with sonar
dialog window. Then click find on server
.Windows->Preferences->Sonar
).HTH.
It got fixed by following the instructions mentioned here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With