feat(maven): choose the JRE Maven runs with (#2020)

Closes #1976. Settings › Build Tools › Maven gets a JRE field (per project or global): empty uses the Project JDK, else the chosen JDK runs Maven sync, builds, goals and tests (JAVA_HOME). One resolver (ide_sdk::apply::maven_jdk / maven_build_env) now serves the build model, compile steps, Maven run configurations and the mvnd Java 17 check; an explicit JAVA_HOME in a run configuration still wins.
Цей коміт міститься в:
l0ng-ai authored and GitHub committed 2026-11-07 23:56:04 +08:00
1 джерело fdb07e580c
коміт b43d9bf7fb
13 files changed
+256 -30

No files matched your search

+10
Переглянути файл
@@ -498,6 +498,16 @@ export function MavenPage() {
return (
<div className={styles.page}>
<Section>
<SdkRow
k="languages.java.maven.runnerJre"
label="JRE"
kind="jdk"
emptyLabel="Use Project JDK"
directory
browseTitle="Select JDK Home Directory"
aria-label="JRE"
hint="JDK used for Maven sync, builds, goals and tests. An explicit JAVA_HOME in a run configuration takes precedence."
/>
<SdkRow
k="languages.java.maven.home"
label="Maven home path"