0

I've read other posts and the sonar examples but I just don't get it, I think I'm just confusing what 'modules' are exactly.

So I have a basic Java EE Enterprise Application with this structure, I have the main Project let's name it Test and inside of it I have Test-ejb and Test-war which are 2 other projects.

So I'm focusing in these two projects, so let's focus on Test-war. So in the root I have the properties file and here's where I get confused. I have the src folder and this line in properties sonar.sources=src, but inside this folder there's something like "java\ice\co\cr\sigi" in which there are all the different packages like:

ice.co.cr.sigi.action ice.co.cr.sigi.beans

So how would be the exact configuration of the properties file dealing with this case? I also tried the source line like this src/java/ice/co/cr/sigi.

ZakRoM
  • 9
  • 2

1 Answers1

1

As stated on the documentation page: "The source directory should be set to the directory containing the top parent package. For example, if your directory structure is 'src/main/java/com/mycompany/...', the source directory must be set to 'src/main/java'." In your case, the "sonar.sources" property should be set to "src/java".