Custom Search

Wednesday, September 27, 2017

How to Install maven in Mac macOS Sierra 10.12.5 Mac OS X

$ java -version

$ echo $JAVA_HOME

$ brew install maven

$ which mvn

$ mvn -v

======

$ java -version
java version "1.8.0_131"
Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)

$ echo $JAVA_HOME
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home

$ brew install maven
Warning: You are using OS X 10.12.
We do not provide support for this pre-release version.
You may encounter build failures or other breakages.
Please create pull-requests instead of filing issues.
==> Downloading https://www.apache.org/dyn/closer.cgi?path=maven/ma
Already downloaded: /Users/user/Library/Caches/Homebrew/maven-3.3.9.tar.gz
🍺  /usr/local/Cellar/maven/3.3.9: 94 files, 9.6M, built in 0 seconds
yadneshs-MacBook-Pro:~ user$ 

$ mvn -v
Apache Maven 3.3.9
Maven home: /usr/local/Cellar/maven/3.3.9/libexec
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.12.5", arch: "x86_64", family: "mac"

1 comment:

  1. BlueHost is ultimately one of the best hosting company with plans for any hosting needs.

    ReplyDelete