• TestingDocs
TestingDocs.com
Software Testing website
  • Automation
    • Selenium
    • JBehave Framework
  • Tutorials
    • MySQL Tutorials
    • Testlink
    • Maven
    • Git
  • IDEs
    • IntelliJ IDEA
    • Eclipse
  • Flowcharts
    • Flowgorithm
    • Raptor
  • About

Apache Maven

Install Apache Maven 3.x on Windows 10

Maven

Introduction

Lets us see how to install Apache Maven 3.x on your Windows 10 machine. This post describes how to set up the Apache maven tool on your windows machine.

System Requirements

Maven 3.x requires JDK 1.7 or above.  You need minimum disk space to download the archive and for your local maven repository.

You can verify Java installation and check the java version on your machine with java command. Open the command prompt and execute the below command.

/> java -version

Maven Java verify

Download

Download Maven 3.x archive from the download url as shown in the picture. Maven is distributed in several formats. Pick the .zip archive format and download it on to your Windows machine.

https://maven.apache.org/download.cgi

Apache Maven Download

Install

The installation of Apache Maven 3.x is simple.

Extract the downloaded .zip archive and copy the folder to you favorite location on your hard drive. Alternatively, you can rename the folder to strip the version details etc. ( e.g. maven )

Make sure JAVA_HOME environment variable is set and points to your JDK installation. To check the environment variable value, use the following command

/> echo %JAVA_HOME%

You should see JDK installation path in the output.

In the next step, add the maven bin folder to your PATH environment variable.

Just ask Cortana “environment variables”

Cortana environment variables

Cortana opens the System properties window for you. Click Environment variables in the System properties windows.

Under System variables, select Path variable and click on Edit… button.

Click on the New button, to add the Maven bin directory to the PATH.

Verify

You can verify the installation to make sure everything was setup correct with mvn command. Open the command prompt and issue the following command.

/> mvn -version

Verify the output of the command. You should see the Maven version in the output.That’s it. You are done with the maven install process.

Next Steps

Setting up MAVEN_HOME

https://www.testingdocs.com/setting-up-maven_home-on-windows-10/

See Also

Installing on Ubuntu Linux

https://www.testingdocs.com/install-maven-on-ubuntu-linux/

Related Posts

Maven Download Verification Win11

Apache Maven /

Download Maven on Windows 11

Invalid Target Java Error

Apache Maven /

Fix Fatal Error compiling: Invalid target release in Maven Project

Maven Project from archetype

Apache Maven /

Create Maven Project from Archetype in NetBeans

Create New Project

Apache Maven /

Create a Maven Project skip archetype

Maven Download Button

Apache Maven /

Install Maven on Ubuntu Linux

‹ How to fix Maven error No goals specified› What is Maven?

Recent Posts

  • How to secure your SQL Database: Tips and Tricks
  • Shaping the Future of Development: Exploring Key Trends in Software Engineering
  • Improving Java Performance with Multithreading
  • Difference between PHP and JavaScript?
  • Bing Conversation Styles
  • ChatGPT Introduction
  • Open Source AI Frameworks
  • Artificial Intelligence Tools
  • Top AI Music Applications
  • Top AI Website Design Tools

Back to Top

Links

  • Contact
  • Privacy Policy
  • Cookie Policy

www.TestingDocs.com