export M2_HOME=/usr/local/apache-maven/apache-maven-2.2.Open command terminal and set environment variables Set the M2_Home and MAVEN_OPTS in linux environment If you see similar message, means your Apache Maven is installed successfully on Windows. To install the Maven in my machine I have used JDK 8 Apache Maven 3.5.0 Windows 7 1- Ensure JAVAHOME environment variable is set and points to your JDK installation. To make it simple I have separated all in stepwise. To verify it, in command prompt, type “ mvn –version“. In this tutorial, we will show you to how to configure Apache Maven in your Windows machine. ![]() Path = %JAVA_HOME%\bin %M2% Because (M2= %M2_HOME%\bin ) Update PATH variable, append “Maven bin folder” path, so that you can run the Maven’s command everywhere. ![]() M2 = %M2_HOME%\bin (Optional – This M2 vaiable will add in the path variable) M2_HOME = D:\Eclipse_Maven_Tomcat\apache-maven-3.2.3 (Mandatory) Add M2_HOME variable and MAVEN_OPTS variableĪdd a new M2_HOME variable to the Windows environment, and point it to your Maven folder. I extracted in the path D:\Eclipse_Maven_TomcatĤ. ![]() Make sure JDK is installed, and “ JAVA_HOME” variable is added in Windows environment variableĮxtract the downloaded zip file. Download the latest version of Maven apache-maven-3.1.0-bin.zip as of this writing Unzip the archive and place the the Maven folder somewhere on your computer. Download the Maven 3.2.3 software from the below urlįile Name : apache-maven-3.2.3-bin.zip 2. Apache Maven is not require to install on Windows as a service component, you just need to download the Maven’s zip file, extract it and configure the Windows environment path variable.
0 Comments
Leave a Reply. |