Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Windows Tutorials»How to Install Apache Maven on Windows

    How to Install Apache Maven on Windows

    RahulBy RahulFebruary 13, 20172 Mins ReadUpdated:February 23, 2017

    Introduction

    Apache Maven is a software project management and comprehension tool. This is developing under Apache Foundation. This tutorial will help you to install Apache Maven on Windows system.

    Requirements

    Apache Maven required Java Development Kit (JDK) to be installed on the system. Apache Maven 3.3 requires JDK 1.7 or above to execute. So make sure your server fulfill requirements before installing Apache maven.

    • Maven 3.3.X => JAVA 7 or later
    • Maven 3.2.X => JAVA 6 or later
    • Maven 3.1.X => JAVA 5 or later
    • Download Apache Maven

      To download the latest version of Apache Maven, Visit its official website download page. At the writing time of this tutorial, Apache Maven 3.3.9 is the latest version available.

      For this tutorial, I have downloaded apache-maven-3.3.9-bin.zip and extract its content under c:\Apache\Maven

      Configure JAVA_HOME

      Make sure you have set JAVA_HOME environment variable. If not already set, add this under system environment variables. To open system properties type sysdm.cpl from run window.

      Configure Maven Environment

      Apache Maven required MAVEN_HOME and M2_HOME environment variable to set. You also need to add Apache maven bin location under systems PATH environment variable.

      Also appened ;c:\Apache\Maven\bin under Path environment variable.

      Verify Installation

      Finally, You have successfully installed Apache Maven on your Windows system. Now open a command prompt and run mvn –version command to verify installation and installed version.

      C:\Users\Rahul> mvn --version 
      
      Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5; 2015-11-10T22:11:4
      7+05:30)
      Maven home: c:\Apache\Maven
      Java version: 1.8.0_121, vendor: Oracle Corporation
      Java home: C:\Program Files\Java\jdk1.8.0_121\jre
      Default locale: en_US, platform encoding: Cp1252
      OS name: "windows 8.1", version: "6.3", arch: "amd64", family: "dos"
      
      • Read: How To Install Apache Maven on Ubuntu
    Apache Maven mvn
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow to Enable CORS in Apache Web Server
    Next Article How to Check System Uptime in Linux

    Related Posts

    How to Clear the ASP.NET Temporary files in Windows

    Updated:June 15, 20221 Min Read

    Creating Python Virtual Environment on Windows

    Updated:June 3, 20222 Mins Read

    How to Install Apache Maven on Ubuntu 22.04

    Updated:June 2, 20223 Mins Read

    How To Install Apache Solr 9.0 on Fedora 36/35

    Updated:May 26, 20223 Mins Read

    How to Enable / disable Firewall in Windows

    Updated:May 17, 20222 Mins Read

    How to Install Apache ActiveMQ on Ubuntu 22.04

    3 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • What is the /etc/aliases file
    • What is the /etc/nsswitch.conf file in Linux
    • How to Install Ionic Framework on Ubuntu 22.04
    • What is the /etc/hosts file in Linux
    • How to Install Angular CLI on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.