【发布时间】: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