MAVEN installation and environment variable configuration in Windows environment

Source: Internet
Author: User

MAVEN is a project-managed Java tool, and in Java EE we can easily manage team-working projects using MAVEN, and now we're learning the Java EE Framework and using MAVEN to manage class libraries, effectively and easily available to other people in your team.

First, download Maven.

Please visit the MAVEN download page:http://maven.apache.org/download.html, which contains a variety of maven download files for different platforms.

Attention:

What I download here is: Apache-maven-3.3.9-bin.zip version.

Second, unzip the MAVEN compression package.

Unzip the Apache-maven-3.1.1-bin.zip, and move the apache-maven-3.1.1 folder under the extracted folder to E:\Maven, if there is no Maven this folder, please create it yourself.

III. Configuring the environment variables for MAVEN

Right-click "Computer", select "Properties", then click "Advanced System Settings", click "Environment variables" to set environment variables, the following system variables need to be configured:

New system variable Maven_home variable value: E:\Maven\apache-maven-3.3.9

Edit System variable Path add variable value:;%maven_home%\bin

Note: Note that multiple values need to be separated by semicolons, and then click OK .

Iv. detect if the installation is successful.

Finally verify the configuration is successful: With the win key +r, to open the command Line Prompt window, that is, the DOS interface, input MVN--version If the following conditions indicate that the configuration is successful

or input:echo%m2_home%

View version: Mvn-v

Five, upgrade.

MAVEN is also relatively young and frequently updated, so users will often need to update maven installations to get more cool new features and avoid some of the older bu

Just follow the configuration procedure above to replace the new package.

MAVEN installation and environment variable configuration in Windows environment

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.