19
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Homebrew で maven と gradle をインストール

Posted at

machine version

➜  ~  sw_vers
ProductName:	Mac OS X
ProductVersion:	10.10.1
BuildVersion:	14B25

➜  ~  brew -v
Homebrew 0.9.5

maven

brew search

➜  ~  brew search maven
maven	     maven-shell
homebrew/versions/maven2		homebrew/versions/maven30		homebrew/versions/maven31		homebrew/completions/maven-completion

brew install

➜  ~  brew install homebrew/versions/maven31
Cloning into '/usr/local/Library/Taps/homebrew/homebrew-versions'...
remote: Counting objects: 2770, done.
remote: Total 2770 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (2770/2770), 909.49 KiB | 141.00 KiB/s, done.
Resolving deltas: 100% (1621/1621), done.
Checking connectivity... done.
Tapped 171 formulae
==> Installing maven31 from homebrew/homebrew-versions
==> Downloading http://www.apache.org/dyn/closer.cgi?path=maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
==> Best Mirror http://ftp.yz.yamagata-u.ac.jp/pub/network/apache/maven/maven-3/3.1.1/binaries/apache-maven-3.1.1-bin.tar.gz
######################################################################## 100.0%
==> Caveats
WARNING: This older version will conflict with Maven if installed at the
same time.
==> Summary
?  /usr/local/Cellar/maven31/3.1.1: 61 files, 6.3M, built in 13 seconds

➜  ~  mvn -v
Apache Maven 3.1.1 (0728685237757ffbf44136acec0402957f723d9a; 2013-09-18 00:22:22+0900)
Maven home: /usr/local/Cellar/maven31/3.1.1/libexec
Java version: 1.8.0_25, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: US-ASCII
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"

gradle

brew search

2015-01-24 時点では、最新バーションの 2.2.1 は formula がない。

➜  ~  brew search gradle
gradle	   gradle110  gradle112	 gradle16   gradle18   gradle20	  gradle21

brew install

➜  ~  brew install gradle21       
==> Installing gradle21 from homebrew/homebrew-versions
==> Downloading http://services.gradle.org/distributions/gradle-2.1-bin.zip
######################################################################## 100.0%
?  /usr/local/Cellar/gradle21/2.1: 149 files, 44M, built in 23 seconds

➜  ~  gradle -v

------------------------------------------------------------
Gradle 2.1
------------------------------------------------------------

Build time:   2014-09-08 10:40:39 UTC
Build number: none
Revision:     e6cf70745ac11fa943e19294d19a2c527a669a53

Groovy:       2.3.6
Ant:          Apache Ant(TM) version 1.9.3 compiled on December 23 2013
JVM:          1.8.0_25 (Oracle Corporation 25.25-b02)
OS:           Mac OS X 10.10.1 x86_64
19
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?