如何使用 brew 命令在 mac 中安装特定版本的 maven
How to install specific version of maven in mac using brew command
我想在使用 brew 命令时安装特定版本 (3.0.5) 的 maven。我尝试了以下命令,但因 错误而失败:没有名称为“3.0.5”的可用公式
brew install maven 3.0.5
有什么想法吗?
brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb
然后它将使用不同的 Homebrew 公式,它将为您提供 maven 3.0.5
我最后在我的 Mac 上试过这个,它可以安装 3.0.5!
如果 none 有效并且您可以使用类似的版本,请尝试以下操作:
brew install maven30
你有什么OS?在 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 update。
如果一直没有,尝试恢复安装:
cd ~/Documents
mkdir BrewRecovery
cd BrewRecovery
curl -OL https://gist.githubusercontent.com/ilovezfs/21a741a78927a17b9ad1/raw/fef5866ccd51f07a9635fcb1096e8df0479af01b/Brewfile-deanchester.brewfile
md5 Brewfile-deanchester.brewfile
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 命令时安装特定版本 (3.0.5) 的 maven。我尝试了以下命令,但因 错误而失败:没有名称为“3.0.5”的可用公式
brew install maven 3.0.5
有什么想法吗?
brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb
然后它将使用不同的 Homebrew 公式,它将为您提供 maven 3.0.5
我最后在我的 Mac 上试过这个,它可以安装 3.0.5!
如果 none 有效并且您可以使用类似的版本,请尝试以下操作:
brew install maven30
你有什么OS?在 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 update。
如果一直没有,尝试恢复安装:
cd ~/Documents
mkdir BrewRecovery
cd BrewRecovery
curl -OL https://gist.githubusercontent.com/ilovezfs/21a741a78927a17b9ad1/raw/fef5866ccd51f07a9635fcb1096e8df0479af01b/Brewfile-deanchester.brewfile
md5 Brewfile-deanchester.brewfile
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