fix(maven): unlink modules of a reactor so jdtls stops importing them (#1059)

Only root Maven projects could be unlinked, and jdtls imports an aggregator with all of its modules whatever java.import.exclusions say. A module of a reactor can now be unlinked from the Maven tool window; when one is, jdtls gets initializationOptions.projectConfigurations listing the linked POMs except the aggregators above the unlinked module (plus the Gradle build file if there is one), and a Maven sync only names the POMs jdtls imported. Unlinking whole roots keeps using exclusions.

Fixes #767
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-04 01:53:45 +08:00
1 джерело 6eb5584beb
коміт 8bb6dfddc2
8 files changed
+257 -22

No files matched your search

+1
Переглянути файл
@@ -146,6 +146,7 @@
"Unlink Maven Projects": "取消链接 Maven 项目",
"Unlink Maven projects?": "取消链接 Maven 项目?",
"Remove this project and its modules from Maven? Files will remain in the Project view.": "从 Maven 中移除此项目及其模块?文件将保留在项目视图中。",
"Remove this module and its submodules from Maven? The Java language server stops importing them, so they no longer use memory. Files will remain in the Project view; add the pom.xml again to restore them.": "从 Maven 中移除此模块及其子模块?Java 语言服务器将不再导入它们,也就不再为它们占用内存。文件将保留在项目视图中;重新添加其 pom.xml 即可恢复。",
"Unlink": "取消链接",
"(does not exist)": "(不存在)",
", e.g.": ",例如",