HomebrewでMaven3をアップデートする方法

maven 3.2.5からmaven 3.3.1にアップデートを行います。

brew update
brew upgrade maven

バージョンを確認してみます。

 $ brew info maven
maven: stable 3.3.1
https://maven.apache.org/
Conflicts with: mvnvm
/usr/local/Cellar/maven/3.2.5 (82 files, 9.1M)
  Built from source
/usr/local/Cellar/maven/3.3.1 (92 files, 9.3M) *
  Built from source
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/maven.rb
 $ maven -v
Apache Maven 3.3.1 (cab6659f9874fa96462afef40fcf6bc033d58c1c; 2015-03-14T05:10:27+09:00)
Maven home: /usr/local/Cellar/maven/3.3.1/libexec
Java version: 1.8.0_31, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/jre
Default locale: ja_JP, platform encoding: UTF-8
OS name: "mac os x", version: "10.10.1", arch: "x86_64", family: "mac"