How to install maven on mac using terminal without using brew

I would like to know how to install maven (apache-maven-3.1.1) on mac using a terminal application without using brew.

If possible, explain the steps using the commands.

without using brew !!

+3
source share
2 answers

If you have homegrown installed, it should be as simple as

brew install maven

If you do not have a homegrown (and you must install it), installation instructions here

+17
source

You can download apache-maven-3.1.1-bin-tar.gz copy to / usr / share / java via

sudo cp apache-maven-3.1.1-bin.tar.gz /usr/share/java

and unzip it through:

cd /usr/share/java
sudo tar -zxf apache-maven-3.1.1-bin.tar.gz 
sudo rm apache-mave-3.1.1-bin.tar.gz

and finally add something similar:

PATH=/usr/share/maven/bin:$PATH

c .bash_profile.

. 3.2.1.

+1

All Articles