дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-09 11:15:40 +02:00
fix(java): Apply the Maven settings to jdtls and Lombok, find more Maven installs
Review fixes for the Project JDK / Maven settings: - jdtls gets the user settings.xml as java.configuration.maven.userSettings, so the editor resolves dependencies through the same mirrors and servers as sync and builds. - The configured local repository (else <localRepository> of the chosen settings.xml) is where the static POM model looks for parent POMs / BOMs and where the Lombok agent is looked for. - Maven discovery finds mvn.cmd on PATH on Windows and the homes Maven Wrapper 3.3+ downloads (dists/<name>/<hash> without a nested folder). - A Project JDK pointing at the JDK's bin directory is accepted. - Detected run configurations reload when language settings change, so Maven and Gradle runs use the new JDK, Maven home and options. - Chinese text for the new settings.
Цей коміт міститься в:
1 джерело
059a5193ff
коміт
c868ec8b68
12 files changed
+78
-21
No files matched your search
@@ -52,11 +52,12 @@ pub async fn java_resolve_launch(
|
||||
});
|
||||
info.java_exec = Some(java.map(|p| p.to_string_lossy().into_owned()).unwrap_or_else(|| "java".to_owned()));
|
||||
if info.error_count > 0 {
|
||||
let vm_args = settings.languages.java.jdtls_vm_args;
|
||||
let vm_args = &settings.languages.java.jdtls_vm_args;
|
||||
let lombok = ide_sdk::lombok::lombok_agent(
|
||||
&project.root,
|
||||
ide_sdk::lombok::agent_in_args(vm_args.split_whitespace()),
|
||||
ide_tools::managed_bundle(&state.data_dir, "lombok"),
|
||||
ide_sdk::apply::maven_local_repository(&project.root, &settings),
|
||||
);
|
||||
info.hints.extend(lombok.problem());
|
||||
}
|
||||
|
||||
Reference in new issue
Заблокувати користувача