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); } } }