How to Install Maven?
- Install Java JDK 1.5 or above How to setup java
- apache-maven-3.5.0-bin.zip for Windows
- apache-maven-3.5.0-bin.tar.gz for Linux
- apache-maven-3.5.0-bin.tar.gz for Mac
- For Windows, set the above environment variables.
MAVEN_HOME=MAVEN unzip directory path\apache-maven-3.5.0MAVEN=%MAVEN_HOME%\binMAVEN_OPTS=-Xms256m -Xmx512mAppend the string ;%MAVEN% to the end of the system variable, Path.
- For Linux, open command terminal and set the above environment variables.
export MAVEN_HOME=MAVEN unzip directory path\apache-maven-3.5.0export MAVEN=%MAVEN_HOME%\binexport MAVEN_OPTS=-Xms256m -Xmx512mexport PATH=$MAVEN:$PATH
- For Mac, open command terminal and set the above environment variables.
- For Windows, open command console and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven.
- For Linux, open command terminal and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven.
- For Mac, open terminal and type "mvn --version". If you've done the setup correctly, this command will provide you the version of installed Maven.
Labels: automation testing, automationsoftwaretesting, automationtool, create Maven project, install Maven, installjava, java JDK, Maven, selenium tutorials, tesing, testautomation