I'm having difficulty working out the correct properties for sonarQube for my project. The folder structure is as following:

```
mod/
  framework/
    Framework.java
  rebuild2/
    Rebuild2.java
sonar-project.properties

```

There isn't much yet in either java file but do have they do have package declarations (mod.framework and mod.rebuild2 respectively).

I've tried a variety of different ways to write the properties file but it always errors with "The source directory does not match the package declaration". It seems like it is expecting the folders to be mod.framework/ and mod.rebuild2/.

I've looked through the documentation on the main website but all their examples do not have package declarations. I've also searched through here but either the solutions do not work for this or they are maven/gradle configs.

Does anyone have any idea whether it is possible to set up the sonar-project.properties file for this situation?

```
# Required metadata
sonar.projectKey=mc:rebuild2
sonar.projectName=Rebuild 2
sonar.projectVersion=0.2

# The value of the property must be the key of the language.
sonar.language=java

# Encoding of the source code
sonar.sourceEncoding=UTF-8

sonar.modules=framework,rebuild2
framework.sonar.projectName=Framework
framework.sonar.projectBaseDir=mod
framework.sonar.sources=.
rebuild2.sonar.projectName=Rebuild 2
rebuild2.sonar.projectBaseDir=mod
rebuild2.sonar.sources=.

```