我今天已将 IntelliJ 社区从 2021.1 升级到 2021.2,现在尝试运行 maven 命令时出现以下错误:
No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.
我.mvn/wrapper/maven-wrapper.properties
的如下:
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
为了继续使用 Maven Wrapper,我应该怎么做?或者它是一个可能的错误?