Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

feat(build): Maven Daemon (mvnd) support with a settings switch (#1288)

Qing62b5f11ae388
diff --git a/crates/ide-build/src/sync.rs b/crates/ide-build/src/sync.rs
index 407df4541..1a2524407 100644
--- a/crates/ide-build/src/sync.rs
+++ b/crates/ide-build/src/sync.rs
@@ -315,7 +315,10 @@ pub fn sync_maven(
for (n, top) in model.projects.iter().filter(|p| !p.aggregated).enumerate() {
let effective = cache_dir.join(format!("effective-pom-{n}.xml"));
let _ = std::fs::remove_file(&effective);
- let mut args: Vec<String> = vec!["-B".into(), "-fae".into(), "-Dstyle.color=never".into()];
+ // `-T1` keeps mvnd serial: its default parallel build interleaves the
+ // `dependency:tree` output of concurrent modules, which the sync parses
+ // as one stream. mvn is serial anyway, so this only pins the daemon.
+ let mut args: Vec<String> = vec!["-B".into(), "-fae".into(), "-Dstyle.color=never".into(), "-T1".into()];
args.extend(options.maven_options.iter().cloned());
if options.offline {
args.push("-o".into());
@@ -680,4 +683,25 @@ mod tests {
assert_eq!(error_summary(text), "Failed to execute goal");
assert_eq!(error_summary("one\nlast line\n\n"), "last line");
}
+
+ #[cfg(unix)]
+ #[test]
+ fn maven_sync_runs_the_daemon_command_serially() {
+ use std::os::unix::fs::PermissionsExt;
+ let tmp = tempfile::tempdir().unwrap();
+ let root = tmp.path().join("p");
+ std::fs::create_dir_all(&root).unwrap();
+ std::fs::write(root.join("pom.xml"), "<project><groupId>g</groupId><artifactId>a</artifactId></project>")
+ .unwrap();
+ let launcher = tmp.path().join("fake-mvnd");
+ std::fs::write(&launcher, "#!/bin/sh\nprintf '%s\\n' \"$@\" > mvnd-args\n").unwrap();
+ std::fs::set_permissions(&launcher, std::fs::Permissions::from_mode(0o755)).unwrap();
+ let options =
+ SyncOptions { maven_command: Some(launcher.to_string_lossy().into_owned()), ..Default::default() };
+ sync_maven(&root, &tmp.path().join("cache"), &options, &CancellationToken::new(), &|_| {}).unwrap();
+ let args = std::fs::read_to_string(root.join("mvnd-args")).unwrap();
+ // `-T1` pins the daemon serial so the dependency trees stay parseable.
+ assert!(args.contains("-T1"), "args: {args}");
+ assert!(args.contains("help:effective-pom"), "args: {args}");
+ }
}
diff --git a/crates/ide-core/src/settings.rs b/crates/ide-core/src/settings.rs
index e1031c1e6..990c4abae 100644
--- a/crates/ide-core/src/settings.rs
+++ b/crates/ide-core/src/settings.rs
@@ -864,6 +864,12 @@ pub struct MavenSettings {
pub user_settings: String,
/// Local repository (`-Dmaven.repo.local`); empty = from `settings.xml`.
pub local_repository: String,
+ /// Run Maven through the Maven Daemon (`mvnd`) for faster builds. mvnd embeds
+ /// its own Maven, so `home` and the project's `mvnw` are bypassed when it is on.
+ pub daemon: bool,
+ /// Maven Daemon home (or its `mvnd` executable); empty = `$MVND_HOME`, else
+ /// `mvnd` on `PATH` / common install dirs. Only used when `daemon` is on.
+ pub mvnd_home: String,
}
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Type)]
@@ -1095,6 +1101,17 @@ mod maven_linkage_tests {
assert!(encoded.contains("unlinkedProjects"));
assert_eq!(serde_json::from_str::<MavenSettings>(&encoded).unwrap(), settings);
}
+
+ #[test]
+ fn daemon_settings_round_trip() {
+ // Old settings files predate the daemon fields; `serde(default)` keeps them loadable.
+ let old: MavenSettings = serde_json::from_str(r#"{"home":"/opt/maven"}"#).unwrap();
+ assert!(!old.daemon && old.mvnd_home.is_empty());
+ let settings = MavenSettings { daemon: true, mvnd_home: "/opt/mvnd".into(), ..old };
+ let encoded = serde_json::to_string(&settings).unwrap();
+ assert!(encoded.contains("\"daemon\":true") && encoded.contains("mvndHome"));
+ assert_eq!(serde_json::from_str::<MavenSettings>(&encoded).unwrap(), settings);
+ }
}
#[cfg(test)]
diff --git a/crates/ide-host/src/ops/run.rs b/crates/ide-host/src/ops/run.rs
index ae24f9f88..a71a8da5e 100644
--- a/crates/ide-host/src/ops/run.rs
+++ b/crates/ide-host/src/ops/run.rs
@@ -155,6 +155,9 @@ pub async fn start(host: &Host, window: &str, config: RunConfig, on_output: Emit
let (root, settings) = settings_for(host, &project, &config)?;
let root = &root;
// Configurations made in the UI name bare tools (`godot`) that may live outside PATH.
+ // Maven re-applies too: a config listed before a settings change (daemon toggle,
+ // Maven home) keeps the launcher that was current then; re-resolving at launch is
+ // what makes the setting take effect without reopening the project.
let mut config = config;
if config.kind == "maven" {
ide_sdk::apply::prepare_maven_run(&mut config, root, &settings);
diff --git a/crates/ide-sdk/src/apply.rs b/crates/ide-sdk/src/apply.rs
index 815565c32..14a637ee9 100644
--- a/crates/ide-sdk/src/apply.rs
+++ b/crates/ide-sdk/src/apply.rs
@@ -123,8 +123,21 @@ fn not_a_jdk(p: &Path) -> String {
/// `mvn` of the configured Maven home (`languages.java.maven.home`): the
/// executable itself, `<home>/bin/mvn` or `<bin>/mvn`; else of the Maven the project
-/// pins for mise / asdf when it has no Maven wrapper.
+/// pins for mise / asdf when it has no Maven wrapper. With `maven.daemon` on, the
+/// Maven Daemon (`mvnd`) replaces all of that — it embeds its own Maven — unless
+/// it is not installed or the project JDK is older than the Java 17 its daemon
+/// needs, in which case the build stays on mvn (with a logged warning).
pub fn maven_command(root: &Path, s: &Settings) -> Option<PathBuf> {
+ if s.languages.java.maven.daemon {
+ match mvnd_command(root, s) {
+ // No project JDK at all lets mvnd pick its own Java, which may still be new enough.
+ Some(mvnd) if project_jdk(root, s).is_none_or(|j| j.major >= 17) => return Some(mvnd),
+ Some(_) => tracing::warn!(
+ "Maven daemon: the project JDK is older than the Java 17 its daemon needs; building with mvn"
+ ),
+ None => tracing::warn!("Maven daemon is enabled but mvnd was not found; building with mvn"),
+ }
+ }
let name = if cfg!(windows) { "mvn.cmd" } else { "mvn" };
let Some(p) = setting_path(root, &s.languages.java.maven.home) else {
if root.join("mvnw").is_file() || root.join("mvnw.cmd").is_file() {
@@ -141,6 +154,41 @@ pub fn maven_command(root: &Path, s: &Settings) -> Option<PathBuf> {
found
}
+/// The `mvnd` executable when the Maven Daemon is enabled: the configured home
+/// (`languages.java.maven.mvndHome`, the executable itself or `<home>/bin/mvnd`),
+/// else `$MVND_HOME`, else `mvnd` on `PATH`, else the common Homebrew / sdkman
+/// locations. `None` = not found; the caller falls back to `mvn`.
+pub fn mvnd_command(root: &Path, s: &Settings) -> Option<PathBuf> {
+ let name = if cfg!(windows) { "mvnd.cmd" } else { "mvnd" };
+ if let Some(p) = setting_path(root, &s.languages.java.maven.mvnd_home) {
+ let found = [p.clone(), p.join("bin").join(name), p.join(name)].into_iter().find(|c| c.is_file());
+ if found.is_none() {
+ tracing::warn!("Maven Daemon home {} has no {name}", p.display());
+ }
+ return found;
+ }
+ if let Some(home) = std::env::var_os("MVND_HOME").map(PathBuf::from) {
+ let found = [home.join("bin").join(name), home.join(name)].into_iter().find(|c| c.is_file());
+ if found.is_none() {
+ tracing::warn!("MVND_HOME {} has no {name}", home.display());
+ }
+ return found;
+ }
+ if let Some(found) = crate::exec::which(name) {
+ return Some(found);
+ }
+ if let Some(home) = crate::home_dir() {
+ let sdkman = home.join(".sdkman/candidates/mvnd/current");
+ let candidates = [
+ sdkman.join("bin").join(name),
+ PathBuf::from("/opt/homebrew/opt/mvnd").join("bin").join(name),
+ PathBuf::from("/usr/local/opt/mvnd").join("bin").join(name),
+ ];
+ return candidates.into_iter().find(|c| c.is_file());
+ }
+ None
+}
+
/// Project launcher policy for sync and tool-window tasks.
pub fn gradle_command(root: &Path, build_dir: &Path, s: &Settings) -> PathBuf {
resolve_gradle_command(root, build_dir, s, true)
diff --git a/crates/ide-sdk/tests/version_managers.rs b/crates/ide-sdk/tests/version_managers.rs
index 4fbd3bd51..d60a790d6 100644
--- a/crates/ide-sdk/tests/version_managers.rs
+++ b/crates/ide-sdk/tests/version_managers.rs
@@ -35,13 +35,15 @@ fn mise_and_asdf_installs_are_detected_and_pinned_versions_used() {
let tmp = dunce::canonicalize(tmp.path()).unwrap();
let mise = tmp.join("mise");
let asdf = tmp.join("asdf");
- // SAFETY: the only test in this binary; nothing else reads the environment yet.
+ // SAFETY: the only test in this binary that writes the environment; the daemon
+ // tests below read it, so they run after this one's fixtures are in place.
unsafe {
std::env::set_var("HOME", tmp.join("home"));
std::env::set_var("MISE_DATA_DIR", &mise);
std::env::set_var("ASDF_DATA_DIR", &asdf);
std::env::set_var("MISE_GLOBAL_CONFIG_FILE", tmp.join("no-global.toml"));
std::env::remove_var("JAVA_HOME");
+ std::env::remove_var("MVND_HOME");
}
let installs = mise.join("installs");
@@ -131,11 +133,99 @@ fn mise_and_asdf_installs_are_detected_and_pinned_versions_used() {
ide_sdk::apply::apply_to_run_configs(&mut plain, &project, &s);
assert_eq!(plain[0].command, installs.join("gradle/8.7/bin/gradle").to_string_lossy());
+ // The Maven daemon replaces the pinned Maven when it is on and installed; the
+ // project JDK (21, from mise.toml) can host its JVM.
+ let mut daemon = s.clone();
+ daemon.languages.java.maven.daemon = true;
+ daemon.languages.java.maven.mvnd_home = tmp.join("missing/mvnd").to_string_lossy().into_owned();
+ assert_eq!(
+ ide_sdk::apply::maven_command(&project, &daemon),
+ Some(maven.join("bin/mvn")),
+ "a dead-end mvnd home falls back to the pinned Maven"
+ );
+ let mvnd = tmp.join("mvnd");
+ script(&mvnd.join("bin/mvnd"), "mvnd 1.0-m7");
+ daemon.languages.java.maven.mvnd_home = mvnd.to_string_lossy().into_owned();
+ assert_eq!(
+ ide_sdk::apply::maven_command(&project, &daemon),
+ Some(mvnd.join("bin/mvnd")),
+ "a bare home resolves to <home>/bin/mvnd"
+ );
+ // The executable itself, like `maven.home`, also works.
+ daemon.languages.java.maven.mvnd_home = mvnd.join("bin/mvnd").to_string_lossy().into_owned();
+ assert_eq!(ide_sdk::apply::maven_command(&project, &daemon), Some(mvnd.join("bin/mvnd")));
+
// The project's Maven wrapper keeps precedence over a pinned Maven.
script(&project.join("mvnw"), "");
assert_eq!(ide_sdk::apply::maven_command(&project, &s), None);
+ // ...but not over the daemon.
+ assert_eq!(ide_sdk::apply::maven_command(&project, &daemon), Some(mvnd.join("bin/mvnd")));
// A version the project pins but that isn't installed: nothing is made up.
write(&project.join("mise.toml"), "[tools]\njava = '25'\n");
assert_eq!(ide_sdk::apply::project_jdk(&project, &s), None);
}
+
+#[test]
+fn maven_daemon_run_configs_follow_the_setting_and_the_jdk() {
+ let tmp = tempfile::tempdir().unwrap();
+ let tmp = dunce::canonicalize(tmp.path()).unwrap();
+ let project = tmp.join("project");
+ write(&project.join("pom.xml"), "<project/>");
+ let mvnd = tmp.join("mvnd");
+ script(&mvnd.join("bin/mvnd"), "mvnd 1.0-m7");
+ let mvn = tmp.join("mvn");
+ script(&mvn.join("bin/mvn"), "Apache Maven 3.9.6");
+ let mvnd_path = mvnd.join("bin/mvnd").to_string_lossy().into_owned();
+ let mvn_path = mvn.join("bin/mvn").to_string_lossy().into_owned();
+
+ let mut s = Settings::default();
+ s.languages.java.maven.daemon = true;
+ s.languages.java.maven.mvnd_home = mvnd_path.clone();
+ s.languages.java.maven.home = mvn_path.clone();
+
+ let run = |command: &str, detected: bool| RunConfig {
+ id: "maven:x".into(),
+ name: "x".into(),
+ kind: "maven".into(),
+ command: command.into(),
+ args: vec!["package".into()],
+ cwd: None,
+ env: BTreeMap::new(),
+ detected,
+ is_test: false,
+ debug_adapter: None,
+ allow_parallel: false,
+ extras: Default::default(),
+ };
+
+ // No project JDK: the daemon may pick its own, so it stays on mvnd.
+ let mut configs = [run("mvn", true), run("mvn", false)];
+ ide_sdk::apply::apply_to_run_configs(&mut configs, &project, &s);
+ assert_eq!(configs[0].command, mvnd_path, "detected config runs the daemon");
+ assert_eq!(configs[1].command, mvnd_path, "saved `mvn` config is pointed at the daemon");
+
+ // A launcher the user wrote into a configuration is theirs: an absolute path
+ // or a bare `mvnd` stays as configured.
+ let mut configs = [run(&mvn_path, false), run("mvnd", false)];
+ ide_sdk::apply::apply_to_run_configs(&mut configs, &project, &s);
+ assert_eq!(configs[0].command, mvn_path, "a custom absolute launcher is kept");
+ assert_eq!(configs[1].command, "mvnd", "a user-written mvnd is kept");
+
+ // A project JDK older than the daemon's Java 17 requirement keeps mvn.
+ let jdk8 = tmp.join("jdk8");
+ jdk(&jdk8, "1.8.0_392");
+ s.languages.java.jdk = jdk8.to_string_lossy().into_owned();
+ let mut configs = [run("mvn", true), run("mvn", false)];
+ ide_sdk::apply::apply_to_run_configs(&mut configs, &project, &s);
+ assert_eq!(configs[0].command, mvn_path, "JDK 8 cannot host the daemon JVM");
+ assert_eq!(configs[1].command, mvn_path);
+
+ // With the daemon off, the same configurations run the configured Maven.
+ s.languages.java.maven.daemon = false;
+ s.languages.java.jdk = String::new();
+ let mut configs = [run("mvn", true), run("mvn", false)];
+ ide_sdk::apply::apply_to_run_configs(&mut configs, &project, &s);
+ assert_eq!(configs[0].command, mvn_path);
+ assert_eq!(configs[1].command, mvn_path);
+}
diff --git a/src/bindings.ts b/src/bindings.ts
index 25da23951..bb7aa5cd4 100644
--- a/src/bindings.ts
+++ b/src/bindings.ts
@@ -5029,6 +5029,16 @@ export type MavenSettings = {
userSettings?: string,
/** Local repository (`-Dmaven.repo.local`); empty = from `settings.xml`. */
localRepository?: string,
+ /**
+ * Run Maven through the Maven Daemon (`mvnd`) for faster builds. mvnd embeds
+ * its own Maven, so `home` and the project's `mvnw` are bypassed when it is on.
+ */
+ daemon?: boolean,
+ /**
+ * Maven Daemon home (or its `mvnd` executable); empty = `$MVND_HOME`, else
+ * `mvnd` on `PATH` / common install dirs. Only used when `daemon` is on.
+ */
+ mvndHome?: string,
};
export type MemoryCategory =
diff --git a/src/features/settings/__tests__/languages.test.ts b/src/features/settings/__tests__/languages.test.ts
index fcb8897c1..c1e26b741 100644
--- a/src/features/settings/__tests__/languages.test.ts
+++ b/src/features/settings/__tests__/languages.test.ts
@@ -22,7 +22,12 @@ describe("languages settings", () => {
node: { packageManager: "pip" },
rust: { checkCommand: "clippy", checkOnSave: false },
typescript: { version: "" },
- java: { jdtlsVmArgs: " -Xmx2g ", jdk: 21, jdtlsJdk: " /opt/jdk-25 ", maven: { home: " /opt/maven " } },
+ java: {
+ jdtlsVmArgs: " -Xmx2g ",
+ jdk: 21,
+ jdtlsJdk: " /opt/jdk-25 ",
+ maven: { home: " /opt/maven ", daemon: "yes", mvndHome: " /opt/mvnd " },
+ },
});
expect(v.python).toEqual({ interpreter: "/usr/bin/python3", activateVirtualenv: true });
expect(v.node.packageManager).toBe("");
@@ -32,7 +37,14 @@ describe("languages settings", () => {
expect(v.java.jdtlsVmArgs).toBe("-Xmx2g");
expect(v.java.jdk).toBe("");
expect(v.java.jdtlsJdk).toBe("/opt/jdk-25");
- expect(v.java.maven).toEqual({ home: "/opt/maven", userSettings: "", localRepository: "", unlinkedProjects: [] });
+ expect(v.java.maven).toEqual({
+ home: "/opt/maven",
+ userSettings: "",
+ localRepository: "",
+ unlinkedProjects: [],
+ daemon: false,
+ mvndHome: "/opt/mvnd",
+ });
expect(validateSettings({}).languages).toEqual(DEFAULT_LANGUAGES);
});
diff --git a/src/features/settings/languages/LanguagePages.tsx b/src/features/settings/languages/LanguagePages.tsx
index c30b755b0..b98ad397d 100644
--- a/src/features/settings/languages/LanguagePages.tsx
+++ b/src/features/settings/languages/LanguagePages.tsx
@@ -396,6 +396,7 @@ export function GradlePage() {
}
export function MavenPage() {
+ const [daemon, setDaemon] = useSetting<boolean>("languages.java.maven.daemon");
return (
<div className={styles.page}>
<Section>
@@ -408,7 +409,7 @@ export function MavenPage() {
directory
browseTitle="Select Maven Home Directory"
aria-label="Maven home path"
- hint="Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw."
+ hint="Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw. Bypassed while the Maven daemon is enabled."
/>
<PathInput
k="languages.java.maven.userSettings"
@@ -425,6 +426,19 @@ export function MavenPage() {
title="Select Local Repository"
hint="Passed as -Dmaven.repo.local."
/>
+ <Toggle
+ label="Use Maven Daemon (mvnd)"
+ checked={daemon}
+ onChange={setDaemon}
+ hint="Builds, sync and Maven run configurations run through mvnd for speed. It embeds its own Maven (the home and mvnw are bypassed), needs Java 17+ and builds in parallel by default. Falls back to mvn when mvnd is missing or the JDK is too old."
+ />
+ <PathInput
+ k="languages.java.maven.mvndHome"
+ label="Maven Daemon home path"
+ placeholder="MVND_HOME, else auto-detected"
+ title="Select Maven Daemon Home Directory"
+ hint="The mvnd home (or its executable). Empty = $MVND_HOME, else mvnd on PATH."
+ />
</Section>
</div>
);
diff --git a/src/platform/languageSettings.ts b/src/platform/languageSettings.ts
index 5347ad918..a728e04ca 100644
--- a/src/platform/languageSettings.ts
+++ b/src/platform/languageSettings.ts
@@ -105,7 +105,14 @@ export interface LanguagesValid {
/** IDEA's "Build and run using": Gradle (`JavaExec`) or the IDE (the language server's classpath). */
runUsing: "gradle" | "ide";
};
- maven: { home: string; userSettings: string; localRepository: string; unlinkedProjects: string[] };
+ maven: {
+ home: string;
+ userSettings: string;
+ localRepository: string;
+ unlinkedProjects: string[];
+ daemon: boolean;
+ mvndHome: string;
+ };
};
/** Preview font size in px; `null` follows the editor font size. */
markdown: { previewFontSize: number | null };
@@ -149,7 +156,7 @@ export const DEFAULT_LANGUAGES: LanguagesValid = {
jdtlsJdk: "",
jdtlsVmArgs: "",
gradle: { jvm: "", distribution: "wrapper", home: "", userHome: "", runUsing: "gradle" },
- maven: { home: "", userSettings: "", localRepository: "", unlinkedProjects: [] },
+ maven: { home: "", userSettings: "", localRepository: "", unlinkedProjects: [], daemon: false, mvndHome: "" },
},
markdown: { previewFontSize: null },
};
@@ -284,6 +291,8 @@ export function validateLanguages(raw: unknown): LanguagesValid {
userSettings: text(maven.userSettings, d.java.maven.userSettings),
localRepository: text(maven.localRepository, d.java.maven.localRepository),
unlinkedProjects: folders(maven.unlinkedProjects),
+ daemon: bool(maven.daemon, d.java.maven.daemon),
+ mvndHome: text(maven.mvndHome, d.java.maven.mvndHome),
},
},
markdown: { previewFontSize: previewSize(markdown.previewFontSize) },
diff --git a/src/platform/locales/text/fr.json b/src/platform/locales/text/fr.json
index 6c6f3f28c..6516a35d1 100644
--- a/src/platform/locales/text/fr.json
+++ b/src/platform/locales/text/fr.json
@@ -1815,7 +1815,7 @@
"Runs Maven with -o": "Exécute Maven avec -o",
"Runs Optimize Imports when the file has no errors, unless it would change the caret line.": "Exécute Optimiser les imports lorsque le fichier ne contient pas d'erreur, sauf si cela modifie la ligne du curseur.",
"Runs npm scripts and Node-based language servers (vtsls, eslint, pyright…).": "Exécute les scripts npm et les serveurs de langage basés sur Node (vtsls, eslint, pyright…).",
- "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw.": "Exécute la synchronisation, les builds et les configurations d'exécution Maven. Un répertoire choisi remplace le mvnw du projet.",
+ "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw. Bypassed while the Maven daemon is enabled.": "Exécute la synchronisation, les builds et les configurations d'exécution Maven. Un répertoire choisi remplace le mvnw du projet. Ignoré lorsque le démon Maven est activé.",
"Runs the language server's Organize Imports action.": "Exécute l'action Organiser les imports du serveur de langage.",
"Runs the language server's formatter before an explicit save (Actions on Save).": "Exécute le formateur du serveur de langage avant un enregistrement explicite (Actions à l'enregistrement).",
"Search history": "Historique de recherche",
diff --git a/src/platform/locales/text/ko.json b/src/platform/locales/text/ko.json
index cb982bc84..1a2f5948c 100644
--- a/src/platform/locales/text/ko.json
+++ b/src/platform/locales/text/ko.json
@@ -1893,7 +1893,7 @@
"Runs Maven with -o": "-o로 Maven을 실행합니다",
"Runs Optimize Imports when the file has no errors, unless it would change the caret line.": "파일에 오류가 없으면 import 최적화를 실행합니다. 단, 캐럿 줄이 변경되는 경우는 제외합니다.",
"Runs npm scripts and Node-based language servers (vtsls, eslint, pyright…).": "npm 스크립트와 Node 기반 언어 서버(vtsls, eslint, pyright…)를 실행합니다.",
- "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw.": "동기화, 빌드 및 Maven 실행 구성을 실행합니다. 선택한 홈이 프로젝트의 mvnw 대신 사용됩니다.",
+ "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw. Bypassed while the Maven daemon is enabled.": "동기화, 빌드 및 Maven 실행 구성을 실행합니다. 선택한 홈이 프로젝트의 mvnw 대신 사용됩니다. Maven 데몬이 활성화되어 있으면 사용되지 않습니다.",
"Runs the language server's Organize Imports action.": "언어 서버의 import 정리 액션을 실행합니다.",
"Runs the language server's formatter before an explicit save (Actions on Save).": "명시적으로 저장하기 전에 언어 서버의 포매터를 실행합니다(저장 시 액션).",
"Search history": "검색 기록",
diff --git a/src/platform/locales/text/pt.json b/src/platform/locales/text/pt.json
index 46f1157e4..b850972db 100644
--- a/src/platform/locales/text/pt.json
+++ b/src/platform/locales/text/pt.json
@@ -1896,7 +1896,7 @@
"Runs Maven with -o": "Executa o Maven com -o",
"Runs Optimize Imports when the file has no errors, unless it would change the caret line.": "Executa Otimizar importações quando o arquivo não tiver erros, a menos que isso altere a linha do cursor.",
"Runs npm scripts and Node-based language servers (vtsls, eslint, pyright…).": "Executa scripts npm e servidores de linguagem baseados em Node (vtsls, eslint, pyright…).",
- "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw.": "Executa sincronização, compilações e configurações de execução do Maven. O diretório escolhido é usado em vez do mvnw do projeto.",
+ "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw. Bypassed while the Maven daemon is enabled.": "Executa sincronização, compilações e configurações de execução do Maven. O diretório escolhido é usado em vez do mvnw do projeto. Ignorado quando o daemon do Maven está ativado.",
"Runs the language server's Organize Imports action.": "Executa a ação Organizar importações do servidor de linguagem.",
"Runs the language server's formatter before an explicit save (Actions on Save).": "Executa o formatador do servidor de linguagem antes de um salvamento explícito (Ações ao salvar).",
"Search history": "Histórico de pesquisa",
diff --git a/src/platform/locales/text/zh.json b/src/platform/locales/text/zh.json
index 8dbfff8c8..963528478 100644
--- a/src/platform/locales/text/zh.json
+++ b/src/platform/locales/text/zh.json
@@ -1208,11 +1208,13 @@
"Matches": "匹配项",
"Maven actions": "Maven 操作",
"Maven command line": "Maven 命令行",
+ "Maven Daemon home path": "Maven Daemon 主路径",
"Maven home path": "Maven 主路径",
"Maven projects": "Maven 项目",
"Maven Settings…": "Maven 设置…",
"Maven sync finished with errors": "Maven 同步完成,但有错误",
"Maven wrapper, else mvn on PATH": "Maven wrapper,否则使用 PATH 中的 mvn",
+ "MVND_HOME, else auto-detected": "MVND_HOME,否则自动检测",
"Maximize": "最大化",
"Maximize Tool Window": "最大化工具窗口",
"Maximum local history size per project": "每个项目的最大本地历史记录大小",
@@ -1896,7 +1898,7 @@
"Runs Maven with -o": "使用 -o 运行 Maven",
"Runs Optimize Imports when the file has no errors, unless it would change the caret line.": "文件没有错误时运行“优化导入”,除非这会更改光标所在行。",
"Runs npm scripts and Node-based language servers (vtsls, eslint, pyright…).": "运行 npm 脚本和基于 Node 的语言服务器(vtsls、eslint、pyright…)。",
- "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw.": "用于同步、构建和 Maven 运行配置。选定后将代替项目的 mvnw。",
+ "Runs sync, builds and Maven run configurations. A chosen home is used instead of the project's mvnw. Bypassed while the Maven daemon is enabled.": "用于同步、构建和 Maven 运行配置。选定后将代替项目的 mvnw。启用 Maven daemon 时将被绕过。",
"Runs the language server's Organize Imports action.": "运行语言服务器的“整理导入”操作。",
"Runs the language server's formatter before an explicit save (Actions on Save).": "在显式保存前运行语言服务器的格式化程序(保存时操作)。",
"Search history": "搜索历史",
@@ -1960,6 +1962,7 @@
"Select GOPATH": "选择 GOPATH",
"Select JDK Home Directory": "选择 JDK 主目录",
"Select Local Repository": "选择本地仓库",
+ "Select Maven Daemon Home Directory": "选择 Maven Daemon 主目录",
"Select Maven Home Directory": "选择 Maven 主目录",
"Select Search Directory": "选择查找目录",
"Select Maven settings.xml": "选择 Maven settings.xml",
@@ -2253,7 +2256,9 @@
"The caches will be invalidated and rebuilt on the next startup: the symbol index of every project and the syntax caches.": "缓存将被清除,并在下次启动时重建:包括每个项目的符号索引和语法缓存。",
"The caret is not inside a conflict": "光标不在冲突内",
"The clipboard does not contain a patch": "剪贴板中没有补丁",
+ "The mvnd home (or its executable). Empty = $MVND_HOME, else mvnd on PATH.": "mvnd 主目录(或其可执行文件)。留空 = $MVND_HOME,否则使用 PATH 中的 mvnd。",
"The patch file is empty": "补丁文件为空",
+ "Builds, sync and Maven run configurations run through mvnd for speed. It embeds its own Maven (the home and mvnw are bypassed), needs Java 17+ and builds in parallel by default. Falls back to mvn when mvnd is missing or the JDK is too old.": "构建、同步和 Maven 运行配置改用 mvnd 执行以提速。它内嵌自己的 Maven(主路径与 mvnw 被绕过),需要 Java 17+,且默认并行构建。mvnd 缺失或 JDK 过旧时自动回退到 mvn。",
"The project is not a Git repository.": "该项目不是 Git 仓库。",
"The project path is always shown in the status bar navigation bar.": "项目路径始终显示在状态栏导航栏中。",
"The remote contains commits that are not in your branch. Update the branch, then push again.": "远程包含您的分支中没有的提交。请更新分支,然后再次推送。",
@@ -2382,6 +2387,7 @@
"Use DROP CASCADE syntax": "使用 DROP CASCADE 语法",
"Use Default Theme": "使用默认主题",
"Use Find Usages (⌥F7) on a symbol to see its usages here": "对符号使用查找用法 (⌥F7),即可在此查看其用法",
+ "Use Maven Daemon (mvnd)": "使用 Maven Daemon (mvnd)",
"Use IF EXISTS syntax": "使用 IF EXISTS 语法",
"Use Option as Meta key": "将 Option 用作 Meta 键",
"Use SSH tunnel": "使用 SSH 隧道",