【问题标题】:Getting Invalid Maven home directory in IntelliJ with Maven installed via brew通过 brew 安装 Maven 在 IntelliJ 中获取无效的 Maven 主目录
【发布时间】:2021-11-22 09:27:49
【问题描述】:

我想通过 brew- 在 IntelliJ 中设置我本地安装的 Maven(不使用捆绑的),但总是收到“无效的 Maven 主目录”提示。

Maven 安装在这里:

me@MBP ~ % brew list maven
/opt/homebrew/Cellar/maven/3.8.4/bin/mvn
/opt/homebrew/Cellar/maven/3.8.4/bin/mvnDebug
/opt/homebrew/Cellar/maven/3.8.4/bin/mvnyjp
/opt/homebrew/Cellar/maven/3.8.4/libexec/bin/ (4 files)
/opt/homebrew/Cellar/maven/3.8.4/libexec/boot/ (2 files)
/opt/homebrew/Cellar/maven/3.8.4/libexec/conf/ (3 files)
/opt/homebrew/Cellar/maven/3.8.4/libexec/lib/ (62 files)

当我尝试将此路径设置为 IntelliJ 时,我得到:

我做错了什么?

编辑

我尝试过类似的路径,但似乎没有任何效果:

【问题讨论】:

  • 尝试不使用bin 目录
  • 您是否尝试将其设置为/opt/homebrew/Cellar/maven/3.8.4 路径?
  • 删除bin 部分...在您的配置...

标签: maven intellij-idea


【解决方案1】:

尝试使用 libexec 文件夹...

/opt/homebrew/Cellar/maven/3.8.4/libexec

【讨论】:

  • 我相信这应该可以工作,因为我在 Mac 中的 IntelliJ 中配置了类似的路径并且可以正常工作!!
  • 在 2022 年也表现出色 :)
猜你喜欢
  • 2018-09-25
  • 2016-06-10
  • 2018-03-04
  • 2015-10-02
  • 1970-01-01
  • 2010-11-14
  • 2013-07-10
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多