intellij-idea - Intellij - 配置为使用 Maven Wrapper 时未找到有效的 Maven 安装

标签 intellij-idea maven-wrapper

我今天将我的 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 Configuration

我的.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?还是可能的错误?

最佳答案

这是一个错误:IDEA-258757无法使用 Maven 包装器启动任务

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

关于intellij-idea - Intellij - 配置为使用 Maven Wrapper 时未找到有效的 Maven 安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/68834253/

相关文章:

java - 如何在通过JUnit测试的多线程应用程序中调试断点?

java - IntelliJ 显示 "always true"提示但不显示 "always false"的 instanceof

带有 Maven Wrapper 的 Java 17 导致无法识别的 VM 选项 'MaxPermSize=512m'

javascript - hooks调用条件编译报错?

intellij-idea - Geb/Groovy : Page object class considered as a property in another when refering to with "to" option

Android Studio XML 结束标记缩进