How to Install Maven and Configure Environment Variables

In this post, we will show how to install Maven on the Windows platform. Note that if you want to use Maven, you need to have Java installed and an environment variable set up.

#1 Step

  • Open Google and search for maven download.
  • Open the link to https://maven.apache.org/.
  • Click on the link to the binary archive in the Files table – for example, Binary zip archive. The file will be downloaded to a selected folder.

#2 Step

  • After that, go to the folder with the downloaded archive and unzip it.
  • Move the unpacked folder to the C:\Program Files\Maven folder. You can move the folder to any location of your choice, but it would be more convenient to keep it in the mentioned folder.

#3 Step

  • Open the Maven folder.
  • Copy the path to the clipboard. You can do it easily with the right-click on the field with the folder path and selecting the Copy address path as text in the menu.

#4 Step

  • Then, go to the environment variable settings. For this, right-click on the Windows Start button and select System in the menu. In the new window, click on the Advanced System Settings. You’ll see a pop-up window. Click on the Environment Variables there.
  • Click on New in the new pop-up window in the System variables.
  • Enter MAVEN_HOME (all characters in capital case) in the Variable name field.
  • Paste the copied earlier path to the Maven folder in the Variable value. Click on the OK button.

#5 Step

  • Select the Path variable and click on Edit.
  • In the new window, click on New.
  • In the new field, enter %MAVEN_HOME%\bin. After that, click OK in all of the previously opened windows.

#6 Step

  • To verify that the installation was successful, we need to open a command prompt. For this, open the Windows Start menu, type cmd, and press Enter.
  • Type maven -version in the command prompt and press Enter. If you see the information about the version in the following lines, the installation was successful.

Inna Feshchuk

Recent Posts

Testing iOS Apps? Try These 11 Tools for Mobile QA

The saturated mobile app market makes businesses constantly reimagine the definition of quality. This never-ending…

12 months ago

Test Automation with Java: Why It’s Worth the Effort & How to Do It

Over half of the software companies use test automation. And almost all testing pros rely…

1 year ago

The One Swagger API Walk-Through to Answer All Your Questions

Imagine studying a language without dictionaries or manuals. Could you learn what each word means…

1 year ago

16 Interactive Platforms to Practice Your Software Testing Skills

For QA engineers, learning is a never-ending journey. While you can always expand and refresh…

1 year ago

How to Create Functional Tests with Extensive Coverage

Everyone can write decent functional test cases. Writing documentation for functional testing services that have…

1 year ago

How to Write Automation Scripts. The Basics AQA Engineers Should Know

Automation is now a priority. Nearly all QA specialists write automation scripts for their projects.…

1 year ago