3

我今天已将 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.

但它已正确配置为使用 Maven Wrapper: Maven 配置

.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,我应该怎么做?或者它是一个可能的错误?

4

1 回答 1

4

这是一个错误:IDEA-258757 Cannot start tasks with maven wrapper

UPD:此问题已在 2021.3+ 版本中修复

于 2021-08-19T09:27:57.573 回答