"Run Anything" 操作不适用于 Maven 命令

"Run Anything" action doesn't work for maven commands

虽然 "Run anything" 对其他命令工作正常,但它对 Maven 的命令没有任何作用,从字面上看,它没有任何作用!例如,我想 运行 a mvn clean install using "Run anything" action:

按回车键不会显示 运行 工具 window,也不会显示错误消息。同样,它什么也不做。请注意,其他命令工作正常。

我习惯于 运行使用此策略来执行 maven 命令。有人可以帮我解决这个问题吗?

我无法在 IntelliJ IDEA 2019.3.4 release and in 2020.1 RC 版本中重现所描述的问题。

如果您在这些版本中问题仍然存在,请分享 idea.log file, there must be some exception logged which may help to understand why it doesn't work for you. Most likely, updating the IDE and running with the default settings/plugins per this document 将解决问题。

还要确保您有一个有效的 Maven 项目 JDK 并且 Maven 在 IDE 设置中正确配置。