How to install a specific version of maven on mac using brew command

I want to install a specific version (3.0.5) of maven in my brew command. I tried the following command, which failed with Error: there is no formula available with the name "3.0.5"

brew install maven 3.0.5 

Any ideas?

+6
source share
2 answers
 brew install https://raw.github.com/Homebrew/homebrew-versions/master/maven30.rb 

he will use a different Homebrew form, which will give you maven 3.0.5 instead

I tried this on my Mac and it is working on installing 3.0.5!

If nothing works and you can use a similar version, try the following:

 brew install maven30 

What OS do you have? On OS X 10.9, you should use brew to install maven30, since maven 3.1.1 seems to be buggy.

By the way:

Using Homebrew:

 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 

it's better

If you get a 404 error, try a brew update immediately before.

If nothing happens, try to restore the installation:

 cd ~/Documents mkdir BrewRecovery cd BrewRecovery curl -OL https://gist.githubusercontent.com/ilovezfs/21a741a78927a17b9ad1/raw/fef5866ccd51f07a9635fcb1096e8df0479af01b/Brewfile-deanchester.brewfile md5 Brewfile-deanchester.brewfile 
+2
source
 brew search maven 

all maven versions are listed below

maven maven-completion maven-shell maven@3.0 maven@3.1 maven@3.2 โœ” maven@3.3

 brew install maven@3.0 

Installs maven 3.0.5 on my mac.

+3
source

All Articles