MAVEN_HOME should point to the folder where we extracted Maven which is C:\Users\Asus\soft\apache-maven-3.8.1 in our case. The next step is to configure the MAVEN_HOME variable on Windows 10. Cool, right? Add MAVEN_HOME Environment Variable That’s all, NO installation is required to work with Mvn.
Now, let’s download apache-maven-3.8.1-bin.zip and unzip it to a specific folder of our choice, for example: C:\Users\Asus\soft\apache-maven-3.8.1 Make sure to download the latest stable release which now 3.8.1 We can download Maven directly from the official website. Java HotSpot(TM) 64-Bit Server VM (build 25.261-b12, mixed mode)Īs we can see, the installed version of JDK is 1.8.0_261.
Java(TM) SE Runtime Environment (build 1.8.0_261-b12) We can type the following commands to check which JDK version is installed on our machine: Another important thing to keep in mind is that:Īpache Maven 3.3.1+ requires JDK 1.7 or aboveĪpache Maven 3.2.1->3.2.5 requires JDK 1.6Īpache Maven 2.2 to 3.1.1 requires JDK 1.5Īpache Maven 2.0 to 2.1 requires Java 1.4
Please refer to how to install on Windows 10 for more details. So, before installing Maven on Windows 10, we need to make sure that Java JDK is installed and the JAVA_HOME environment variable is configured on our machine.
However, Maven requires JDK to perform some important operations such as code compilation.
The installation process of Apache Maven is quite simple, we just need to extract the Maven’s zip file and set up maven environment variables. Note: We have also written a nice article on how to install maven on mac. To build a project, Maven uses its project object model (POM) and a set of plugins. In short, Maven is a build automation and dependency management tool for Java based applications. This confirms that Maven is install successfully and configured on your machine.In this quick tutorial, we are going to highlight how to install Maven on windows 10. Open command prompt and type mvn -version, then the screen should look something like below screen How to verify if Maven is install properly on your machine If JAVA_HOME variable is not configure, then add JAVA_HOME just like MAVEN_HOME in Environment variable. This is how it will look like.ĩ) We have to make sure that JDK is install and JAVA_HOME environment variable is configure. Click New Button present in System Variable and add MAVEN_HOME\binĨ) Once the Path is updated with %MAVEN_HOME%\bin. Type – “View Adva” in the search option and we will see the option – View Advanced system setting.Ĥ) In System Properties dialog, select Advanced tab and click on the Environment Variables button.ĥ) In “Environment variables” dialog, System variables, Clicks on the New button and add a MAVEN_HOME variableĦ) A dialog box will appear, mention Variable Name – MAVEN_HOME and Variable value – mention the path where Apache folder is placed.ħ) Add %MAVEN_HOME%\bin (full path till bin where maven is placed on your machine) to Path. We do not need to install anything, just unzip the folderģ) We need to configure MAVEN_HOME environment variable. Download apache-maven-3.6.1-bin.zip.Ģ) Unzip the downloaded folder and then it will have below mentioned files. 1) To install Apache Maven on window, we need to download Maven’s zip folder from Official Maven Site.