EDUCBA Logo

EDUCBA

MENUMENU
  • Explore
    • EDUCBA Pro
    • PRO Bundles
    • Featured Skills
    • New & Trending
    • Fresh Entries
    • Finance
    • Data Science
    • Programming and Dev
    • Excel
    • Marketing
    • HR
    • PDP
    • VFX and Design
    • Project Management
    • Exam Prep
    • All Courses
  • Blog
  • Enterprise
  • Free Courses
  • Log in
  • Sign Up
Home Software Development Software Development Tutorials Maven Tutorial How to Install Maven?
 

How to Install Maven?

Priya Pedamkar
Article byPriya Pedamkar

Updated May 15, 2023

How to Install Maven

 

 

How to Install Maven?

The following article provides an outline for How to Install Maven? A maven is a tool used to build and manage any Java-based project. It makes it easier to maintain the project, publish information, and share JARs across several projects. In addition to all this, Maven is an open-source tool.

Watch our Demo Courses and Videos

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

Following are a few key features of Maven:

  • Simple project setup.
  • A large and growing repository of libraries and metadata.
  • Ability to easily work on multiple projects at the same time.
  • Ability to easily write plugins in Java or scripting languages.
  • Instant access to new features with little or no extra configuration.
  • Easy integration with the source control system.
  • Central repositories for JARs and other dependencies.

Downloading Apache Maven

Apache Maven 3.6.0 is the latest release and recommended version for all users from here: https://maven.apache.org/downloadable.

The following are the system requirements for the download:

JDK Version For Maven 3.3.0 and higher versions, JDK 1.7 and above version required. One can use the Toolchains to build against the JDK version of 1.3 and others.
Memory No particular requirement as such.
OS No minimum requirement.
Disk 10 MB for Maven Install while additional space for the local repository. Approx. size of 500 MB additional space for the local repository.

Installing Maven on Windows

Given below shows installing Maven on Windows:

1. Ensure the required JDK version is installed on your device before installing Maven.

2. Download Maven from https://maven.apache.org/download.cgi

Download Maven

system requrmnt

Select the Link option apache apache-maven-3.6.0-bin.zip to download the zip file.

3. Save the file on your local server.

save file

4.1 Unzip the file to a New user-defined folder in C: (here C:/Maven.

Maven c

4.2 After unzipping, it appears like this:

View advanced system settings

5. 1 Go to-> View advanced system settings->Advanced->Environment Variables …->New.

Environment Variables

Give the Variable name and Variable value as follows:

5.2 Variable Name: MAVEN_HOME

Variable Value: C:\Maven\apache-maven-3.6.0

Note: Here, the variable value is the path where you unzipped your downloaded Maven files, as shown in the image below.

Variable Value

6. Add ‘%MAVEN_HOME%\bin’ to PATH

System Variables->path->Edit->New.

Add the ‘%MAVEN_HOME%\bin to the path.

MAVEN_HOME

bin to the path

You have successfully installed a Maven application.

7. To Verify, open the command prompt.

comment prompt 5263

Now, type the command ‘mvn –version’ and click on enter.

All the information with respect to the current version of the tool and MAVEN_HOME location will be displayed on your screen.

Maven Installation is successful

Congratulations!! Maven Installation is successful! You can now use your Maven repository for your work.

Errors we Can get when Maven is Installing

If you get any errors, as follows:

1. Possible Error 1

‘mvn’ is not recognized as an internal or external command, operable program, or batch file.

Solution:

Check if your %MAVEN_HOME%\bin is correctly added to the mentioned ‘path’ system variable. If not, add it and again run the command and check.

2. Possible Error 2

The JAVA_HOME environment variable is not defined correctly.

This environment variable is needed to run this program.

NB: JAVA_HOME should point to a JDK, not a JRE.

Solution:

As mentioned initially, kindly make sure about the JDK file and version you have on your system or have installed for the same. Please refer to the requirements table for more details about the version required for Apache Maven installation. Check if the JAVA_HOME system variable is properly configured if the problem persists. If not, configure it and repeat the installation process.

Recommended Articles

This has been a guide to How to Install Maven? Here we have discussed the basic concepts and different steps to install Maven respectively. You may also look at the following articles to learn more –

  1. Maven Commands
  2. Maven Phases
  3. Maven Deploy
  4. Maven Interview Questions

Primary Sidebar

Footer

Follow us!
  • EDUCBA FacebookEDUCBA TwitterEDUCBA LinkedINEDUCBA Instagram
  • EDUCBA YoutubeEDUCBA CourseraEDUCBA Udemy
APPS
EDUCBA Android AppEDUCBA iOS App
Blog
  • Blog
  • Free Tutorials
  • About us
  • Contact us
  • Log in
Courses
  • Enterprise Solutions
  • Free Courses
  • Explore Programs
  • All Courses
  • All in One Bundles
  • Sign up
Email
  • [email protected]

ISO 10004:2018 & ISO 9001:2015 Certified

© 2025 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

EDUCBA
Free Software Development Course

Web development, programming languages, Software testing & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more

🚀 Limited Time Offer! - ENROLL NOW