CodesJava

Easy learning with example program codes

install Maven on Mac OS


As we discussed in previous tutorials that Apache maven is Java based project management tool so JDK is the first requirement. Let us discuss step by step maven installation on Mac os.

Install maven on Mac:

  1. Check Java installation on your machine. Use machine:~ joseph$ java -version command to verify the java installation. Install the java software development kit if it is not installed.

  2. Add JAVA_HOME environment variable if it is not added. Use command export JAVA_HOME=/Library/Java/Home.

  3. Download apache maven from here.

  4. Extract the maven archive file (like apache-maven-3.3.1-bin.tar.gz) to the location where we want to install it. E.g. /usr/local/apache-maven.

  5. Add maven environment variables. Use command export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.1. Now append the maven bin folder. Use command export PATH=/usr/local/apache-maven/apache-maven-3.3.1/bin.

  6. Verify maven installation using machine:~ joseph$ mvn –version command.


Industrial Training

We offers Placement Oriented Training on Java, Spring, JSF, Hibernate, PHP, AngularJS, Angular 4, PLSQL, Oracle BI Publisher etc. We also provides Online training, please mail us at hr@codesjava.com.

Development

We also provides the Development services for Website Development , Java Development, PHP Development, Android App Development etc. You can contact us on hr@codesjava.com.

Copyright © 2019 CodesJava DMCA.com Protection Status SiteMap Reference: Java Wiki