Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install maven on windows

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I. installation

To install Apache Maven on a Windows system, download the Maven zip file, unzip it to the directory you want to install, and configure the Windows environment variable.

1. Required tools

JDK 1.8

Maven 3.3.9

Windows 7

2. JDK and Java_home

Make sure the jdk is set and the java_home is set

3. Download maven

Address: http://maven.apache.org/download.cgi

4. Installation

Extract the downloaded zip file to your preset directory: d:\ maven

5. Add M2_HOME and MAVEN_HOME

Add the M2_HOME and MAVEN_HOME environment variables to the Windows environment variable and point it to your Maven folder.

Note:

Maven says it's just adding M2_HOME, but some projects still reference Maven's folder MAVEN_HOME, so add it for security.

6. Add to the environment variable-PATH

Update the PATH variable and add the Maven bin folder to the end of the PATH, such as:% M2steps home%\ bin, so that you can run the Maven command in any directory in the command.

7. Verification

Execute mvn version in the command window

It means success!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report