mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-06 16:08:05 +00:00
The profiles checked in the Maven tool window only reached `mvn` (sync and goal runs) and the Kotlin bridge. jdtls imported every module without them, so a dependency whose version, or module, comes from a profile stayed unresolved and its classes were reported as missing, while Build Project ran without `-P` as well. - A Maven sync records the profiles it ran with. jdtls gets a copy of the user settings.xml with them in `<activeProfiles>` (m2e has no other input for profiles), sent as a setting so a running server re-imports instead of restarting; the file name follows its content so m2e reloads it. - Toggling a profile reloads the Maven projects (once for several toggles in a row, again after a sync that started with the previous choice). - Build Project passes the synced profiles with `-P`. - When jdtls finishes an import or project update it does not re-check open files, so their errors stayed until the next edit; open Java files are now re-checked on its ProjectStatus report. This also covers a POM edit or a dependency added to ~/.m2. Fixes #993