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()) {