SonarQube for Eclipse plugin version: 13.2.0.84960
Programming language you’re coding in: Java (multi-module Maven project, Spring Boot)
Is connected mode used: Yes
SonarQube Cloud, SonarQube Server, or SonarQube Community Build? (if one of the latter two, which version?): SonarQube Cloud (EU)
Since around 2026-10-23, a new folder appears in each module of our working copy as soon as a file in it is analyzed:
<module>/.sonar/spring-context-model.json
Our repositories have never needed an ignore rule for .sonar, so these show up as many new untracked files that every developer has to clean up or ignore. Deleting them does not help, they come back with the next analysis.
We could not find any mention of these files in the SonarQube for IDE documentation, the analyzer documentation or the release notes.
Questions:
1. Is creating this folder in the project directories intended?
2. If so, could it be documented, ideally with a recommended ignore rule, or written outside the project directories (for example into the IDE’s own storage)?
Looking at the files you mention in your message, I was surprised to see that you report getting .sonar/spring-context-model.json files in each module of your project. I would have expected it to only appear once, at the project’s root. I was thus wondering if you could share more about your Maven configuration for the analysis ?
Thanks for looking into it. Here are the details of our setup:
The aggregator POM is not at the repository root but in a sibling folder Parent/, next to the modules, and it references them as <module>../ModuleA</module>, <module>../ModuleB</module>, … So no module is nested under the aggregator, and the repository root itself has no pom.xml.
In Eclipse, m2e imports every Maven module as its own Eclipse project. There is no Eclipse project for the repository root.
Each of these Eclipse projects (about 250) is bound in connected mode to the same SonarQube Cloud project.
So far, .sonar/spring-context-model.json has appeared in 12 modules. In one more module, the .sonar folder was created but stayed empty.
The analysis on SonarQube Cloud runs in CI with sonar-maven-plugin 5.6.0.6792 from the aggregator POM (mvn ... sonar-maven-plugin:sonar -f Parent/pom.xml).
To give you a bit more context, SonarQube for Eclipse is implemented based on the default Eclipse behavior of every module (whether it’s a Maven module via m2e or anything else, Gradle, …) being a project, unlike VS Code, for example.
This means the Eclipse plug-in also handles it that way: every module is an Eclipse project in the Eclipse workspace, and the engines in the back in SonarLint Core see multiple distinct projects, therefore running multiple scanners for multiple modules, and the Eclipse plug-in is gluing it back together ^^
Even if there is a project imported for the repository root (aggregator or whatsoever), this would not change, as it is, in turn, a separate Eclipse project.
This is also something that cannot be changed on the client side, as this is how the m2e Plug-in and Maven in Eclipse work.
Why this apparently happens in IntelliJ as well as Mr. Dijk describes, I cannot say, maybe Nico has more knowledge about that
Ah I see, that explains the multiple context files then.
Thanks a lot for the explanation, I wasn’t aware of these Eclipse specifics but it’s good to know !