From 188cbb7b63368de12ac92cf7a53493802eb05ab2 Mon Sep 17 00:00:00 2001 From: Fred Bricon Date: Thu, 23 Nov 2023 16:10:46 +0100 Subject: [PATCH] fix: keep compatibility with 2023.3 Signed-off-by: Fred Bricon --- .../intellij/quarkus/buildtool/maven/MavenToolDelegate.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/redhat/devtools/intellij/quarkus/buildtool/maven/MavenToolDelegate.java b/src/main/java/com/redhat/devtools/intellij/quarkus/buildtool/maven/MavenToolDelegate.java index c008aef0f..eaf8d053f 100644 --- a/src/main/java/com/redhat/devtools/intellij/quarkus/buildtool/maven/MavenToolDelegate.java +++ b/src/main/java/com/redhat/devtools/intellij/quarkus/buildtool/maven/MavenToolDelegate.java @@ -93,8 +93,9 @@ public void processImport(Module module) { var distributionUrl = getWrapperDistributionUrl(ProjectUtil.guessProjectDir(project)); if (distributionUrl != null) { String mavenHome = mavenSettings.getMavenHome(); - if (!MavenServerManager.WRAPPED_MAVEN.equals(mavenHome)){ - mavenSettings.setMavenHome(MavenServerManager.WRAPPED_MAVEN); + String WRAPPED_MAVEN = "Use Maven wrapper"; //MavenServerManager.WRAPPED_MAVEN was removed in 2023.3 without any deprecation warning! + if (!WRAPPED_MAVEN.equals(mavenHome)){ + mavenSettings.setMavenHome(WRAPPED_MAVEN); } } }