【发布时间】:2016-06-02 09:09:49
【问题描述】:
我想在我的 brew 命令中安装特定版本 (3.0.5) 的 maven。我尝试了以下命令,但失败了 Error: No available formula with the name "3.0.5"
brew install maven 3.0.5
有什么想法吗?
【问题讨论】:
我想在我的 brew 命令中安装特定版本 (3.0.5) 的 maven。我尝试了以下命令,但失败了 Error: No available formula with the name "3.0.5"
brew install maven 3.0.5
有什么想法吗?
【问题讨论】:
brew search maven
列出所有 maven 版本如下
maven maven-completion maven-shell maven@3.0 maven@3.1 maven@3.2 ✔ maven@3.3
brew install maven@3.0
在我的 Mac 上安装 maven 3.0.5。
【讨论】:
⇒ brew search maven ==> Formulae maven ✔ maven-completion maven-shell maven@3.2 maven@3.3 maven@3.5
brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb
然后它将使用不同的 Homebrew 公式,它会为您提供 maven 3.0.5
我最后在我的 Mac 上尝试了这个,它可以安装 3.0.5!
如果没有任何效果,您可以使用类似的版本,请尝试以下:
brew install maven30
你有什么操作系统?在 OS X 10.9 上,您应该使用 brew install maven30 因为 maven 3.1.1 似乎有问题。
顺便说一句:
使用自制软件:
you@host:~$ brew install maven will install Maven 3.3.1 (3/24/15)
you@host:~$ brew install maven30 will install Maven 3.0 which should be
更好
如果您遇到 404 错误,请尝试在之前进行 brew 更新。
如果始终没有,请尝试恢复安装:
cd ~/Documents
mkdir BrewRecovery
cd BrewRecovery
curl -OL https://gist.githubusercontent.com/ilovezfs/21a741a78927a17b9ad1/raw/fef5866ccd51f07a9635fcb1096e8df0479af01b/Brewfile-deanchester.brewfile
md5 Brewfile-deanchester.brewfile
【讨论】: