Reload All Maven Projects breaks our whole setup.
Problem description:
Our project contains both modules compiled in JDK 11 and JDK 1.8 for historical reasons (configured in our pom.xml files), but now every “Reload All Maven Projects” breaks our whole setup.
Steps to reproduce:
When i reload All Maven Projects, - all my modules are overwitten to default SDK (11) instead of keeping specific SDK. - Override compiler parameters are added for my module specically compiled in JDK 1.8. It's impossible to compile the project (UTF-8 error en JDK 1.8 error)
The only workaround we found is to make 2 PowerShell scripts that we must apply after each Maven reload ! - the first modify the XML files in "[user]\AppData\Local\JetBrains\IntelliJIdea2026.2\projects\external_build_system\modules" - the second remove ADDITIONAL_OPTIONS_OVERRIDE section in idea\compiler.xml"
I uploaded a detailled description in PDF via the JetBrains Upload Service.
Upload ID: 2026_08_14_dtzbyTAiRfRJsT8zKcTqyN
File: Bug IntelliJ multiple SDK.pdf
Environment:
Intellij 2026.2.1 on Windows With the 2024 versions of IntelliJ, we didn't have this issue, just so you know how to get back to how it worked before please ? Thanks in advance
Best Regards
Frédéric Leseigneur
Kelio
Please sign in to leave a comment.
Bonjour Frédéric,
For Maven projects, IntelliJ treats the POM as the source of truth and rewrites the module descriptors under
...IntelliJIdea2026.2\projects\external_build_system\moduleson every Reload All Maven Projects. Any manual per-module SDK tweaks done directly in those XMLs or via the UI are not stable and will be overwritten on reload.So make sure you have a consistent
maven-compiler-pluginconfiguration with either:<release>8</release>/<release>11</release>, or<source>1.8</source>,<target>1.8</target>vs<source>11</source>,<target>11</target>Also configure
<encoding>UTF-8</encoding>there.If the issue remains, please share your pom.xml - or, ideally, the entire project (or a small stripped down version) where I can test this.
To avoid automatic creation of
ADDITIONAL_OPTIONS_OVERRIDE, try the following:In the Registry, search for the
maven.import.compiler.argumentskey:.idea/compiler.xml(or at least the<option name="ADDITIONAL_OPTIONS_OVERRIDE">…</option>block), then start the IDE and Reload All Maven Projects once.If it doesn't help, I will definitely need your project to investigate what happens.