As we know that Apache Maven is a software project management and comprehension tool.
Apache Maven can help developer to manage a project's build, reporting and documentation from a central piece of information.
1. Download Apache Maven
To install apache maven on macOS you can download it from this site.
You should select the maven binary tar.gz file, because apache maven doesn't have an installer for macOS, Windows or Linux.
2. Extract File
If you already have the binary tar.gz file in directory ~/Downloads or the other, you can extract it.
3. Open Terminal
The next steps are open the terminal and switch to the directory where the files were already extracted.
For example :
The directory where the files were already extracted is in ~/Downloads.
The apache maven that has been downloaded is apache-maven-3.6.3-bin.tar.gz.
Don't forget to login as a super-user
Move or copy maven files.
mv Downloads/apache-maven-3.6.3-bin.tar.gz /opt/maven
Set the apache maven binaries path.
nano $HOME/.profile
export PATH=$PATH:/opt/maven/bin
To check the installation, run this command
mvn --version
Comments
Post a Comment