top of page
Writer's pictureNishanthi Grashia

Mac - Step by Step - Install Eclipse, TestNg, Maven


Install Eclipse:

  1. Goto https://www.eclipse.org/downloads/packages/

  2. Click on: Download Eclipse IDE for Java Developers

  3. Unzip the downloaded zip file and double click eclipse.exe.

  4. Choose a folder to setup your workspace.


Install TestNG:

  1. Open eclipse IDE

  2. Under Help Tab, goto Eclipse Marketplace.

  3. In Find, type TestNG.

  4. Click install on TestNG for eclipse.

  5. Click confirm for both TestNG and TestNGM2E

  6. Click I agree to the agreement --> Confirm.

  7. Click "Install Anyway" for the warning message that comes.

  8. Restart eclipse.


Install Maven:

  1. Goto https://maven.apache.org/download.cgi

  2. Download the binary zip archive (apache-maven-3.8.1-bin.zip)

  3. Goto Mac terminal, type mvn -version. You will get error about unknown command.

  4. Set the MAVEN_HOME and set the PATH. In terminal, type the following:

export MAVEN_HOME=~/apache-maven-3.8.1

export PATH=$PATH:$MAVEN_HOME/bin

5. Now if you type mvn -version, you will get a valid output.

6. If you still get error in step 5, type echo $PATH in terminal. A path will be displayed in the terminal output. See if apache-maven-3.8.1 folder is available in the path displayed in the terminal output. If not, paste the downloaded apache-maven-3.8.1 folder in the path. In a new terminal, repeat step 4 and 5.


However, this is not a permanent setup (ie. every time you close and open the terminal, you have to run this command again to make sure maven is accessible. To get a permanent setup, refer this link https://stackoverflow.com/a/68324373/3492139 .


1,580 views

Recent Posts

See All
bottom of page