Install Apache Ant on MacOSX:
Pre-requisite: JDK 1.7 or above
Way 1: Without using brew (preferred):
Step 1: Download "apache-ant-1.10.0-bin.tar.gz" from "https://ant.apache.org/bindownload.cgi"
Step 2: Unzip the downloaded folder to the location you want.
Step 3: Set environment variable for maven in bash_profile.
> vim ~/.bash_profile
Step 4: Set path of maven/bin folder (which contains mvn file) in bash_profile as:
> export ANT_HOME="path to apache-ant_1.10.0"
> export PATH=$PATH:$ANT_HOME/bin
Save and quit bash_profile.
Step 5: check maven version.
> ant -v
Way 2: using homebrew:
Step 1: Install homebrew using command:
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Step 2: Install maven using brew:
> brew install ant
Step 3: check maven version
> ant -v
Pre-requisite: JDK 1.7 or above
Way 1: Without using brew (preferred):
Step 1: Download "apache-ant-1.10.0-bin.tar.gz" from "https://ant.apache.org/bindownload.cgi"
Step 2: Unzip the downloaded folder to the location you want.
Step 3: Set environment variable for maven in bash_profile.
> vim ~/.bash_profile
Step 4: Set path of maven/bin folder (which contains mvn file) in bash_profile as:
> export ANT_HOME="path to apache-ant_1.10.0"
> export PATH=$PATH:$ANT_HOME/bin
Save and quit bash_profile.
Step 5: check maven version.
> ant -v
Way 2: using homebrew:
Step 1: Install homebrew using command:
> ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Step 2: Install maven using brew:
> brew install ant
Step 3: check maven version
> ant -v
No comments:
Post a Comment