3

I've upgraded my IntelliJ Community from 2021.1 to 2021.2 today and now I'm getting the following error when trying to run maven commands:

No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.

But it's correctly configured to use Maven Wrapper: Maven Configuration

My .mvn/wrapper/maven-wrapper.properties is as follow:

distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar

What am I supposed to do in order to keep using Maven Wrapper? Or is it a possible bug?

tonyfarney
  • 300
  • 3
  • 14

1 Answers1

4

It is a bug: IDEA-258757 Cannot start tasks with maven wrapper

UPD: This is fixed in versions 2021.3+

Andrey
  • 15,144
  • 25
  • 91
  • 187
  • 1
    Updating Intellij did not resolve the issue for me, I used the bundled maven wrapper as mentioned here: https://stackoverflow.com/a/68712395/3944040 – Leroy Feb 22 '22 at 11:47