Maven (i)--How to install the configuration Maven environment in the Windows operating system

Source: Internet
Author: User

This is a difficult weekend to summarize some of the actions of Maven:

1, before installing MAVEN to confirm that the computer has installed and configured the JDK;

2. Download maven:

maven-3.0.3:http://download.csdn.net/detail/wangshuxuncom/7367413

maven-3.0.5:http://download.csdn.net/detail/wangshuxuncom/7551799

Description: The above resources are free to download

Choose maven-3.0.3 here to demonstrate the installation. After downloading the maven-3.0.3 will be a compressed file, the file is extracted to a folder called "maven-3.0.3", the folder is copied to the place where you want to copy, here we copied to the C-Drive Program Files folder;

3. Configure the MAVEN environment variables (shown here in the Windows operating system):

A, check "computer" and right mouse select and click on "Properties (R)" to get:


b, click on "Advanced system Settings" to get:


C, click on "Environment variable (N) ..." to get:


D. Click "New (W) ..." in the "C" step chart to get:


Do the following: "Variable name (N)" Input m2_home

"Variable Value (V)" Input C:\Program files\maven-3.0.3

As shown in the following:


Click on the "OK" button, so step d to complete;

The "System variable (S)" field in the E, "C" step diagram finds the PATH variable and clicks on "edit (I) ..." to get:


Do the following: Take a look at the value at "Variable Value (V)" is also no English semicolon if you do not add a semicolon and added "%m2_home%\bin" (Add the time without any double quotes OH), if there is a direct at the end of the add "%m2_home%\bin", add the end of the click " OK button, e step to this end;

--click the "OK" button and click the "OK" button to configure the MAVEN environment variable configuration to complete.

4. Test whether the installation is successful:

Open the CMD command window and execute "mvn-version" if the output, such as the following, indicates that the installation was successful.


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.