From b2fd1682b345f8357a40693ad5a4a63a08492605 Mon Sep 17 00:00:00 2001 From: Chao Wang Date: Tue, 21 Oct 2025 16:30:06 +0800 Subject: [PATCH] chore: update var names and add missing docs Signed-off-by: Chao Wang --- README.md | 2 ++ .../java/org/jboss/tools/intellij/exhort/ApiService.java | 8 ++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 6882bf5f..a4761915 100644 --- a/README.md +++ b/README.md @@ -188,6 +188,8 @@ according to your preferences. * `EXHORT_DOCKER_PATH` : Specify the absolute path of `docker` executable. * `EXHORT_PODMAN_PATH` : Specify the absolute path of `podman` executable. * `EXHORT_IMAGE_PLATFORM` : Specify the platform used for multi-arch images. + * `EXHORT_MVN_USER_SETTINGS` : Specify the absolute path to the Maven user settings file. + * `EXHORT_MVN_LOCAL_REPO` : Specify the absolute path to the Maven local repository. ![ Animated screenshot showing the inline reporting feature of Image Analysis ](src/main/resources/images/image-analysis.gif) diff --git a/src/main/java/org/jboss/tools/intellij/exhort/ApiService.java b/src/main/java/org/jboss/tools/intellij/exhort/ApiService.java index 3817f5eb..2b6085e3 100644 --- a/src/main/java/org/jboss/tools/intellij/exhort/ApiService.java +++ b/src/main/java/org/jboss/tools/intellij/exhort/ApiService.java @@ -149,16 +149,16 @@ private void setRequestProperties(final String manifestName) { String userSettingsFile = MavenSettingsUtil.getUserSettingsFile(); if (!userSettingsFile.isBlank()) { - System.setProperty("EXHORT_MVN_USER_SETTINGS_FILE", userSettingsFile); + System.setProperty("EXHORT_MVN_USER_SETTINGS", userSettingsFile); } else { - System.clearProperty("EXHORT_MVN_USER_SETTINGS_FILE"); + System.clearProperty("EXHORT_MVN_USER_SETTINGS"); } String localRepository = MavenSettingsUtil.getLocalRepository(); if (!localRepository.isBlank()) { - System.setProperty("EXHORT_MVN_LOCAL_REPOSITORY", localRepository); + System.setProperty("EXHORT_MVN_LOCAL_REPO", localRepository); } else { - System.clearProperty("EXHORT_MVN_LOCAL_REPOSITORY"); + System.clearProperty("EXHORT_MVN_LOCAL_REPO"); } if (settings.gradlePath != null && !settings.gradlePath.isBlank()) {