Maven3.5.0 installation and environment variable configuration in win10, maven3.5.0win10

Source: Internet
Author: User

Maven3.5.0 installation and environment variable configuration in win10, maven3.5.0win10

1. maven http://maven.apache.org/download.cgi. For example, download apache-maven-3.5.0-bin.zip

2. decompress the package to the specified file. The maven directory is as follows:

3. Configure Environment Variables

Install and configure jdk before configuring maven. maven3.5.0 requires jdk 1.7 and later. I am using jdk1.8.0 ,:

Http://www.oracle.com/technetwork/java/javase/downloads/index.html

(1) Right-click the computer, choose Properties> advanced system Settings> environment variables, and create the M2_HOME variable in the system variables. The variable value is the maven directory.

(2) Add % M2_HOME % \ bin to the path directory of the system variable;

4. Test

Run cmd to open the command line window and enter mvn-v;

If the result is output, the configuration is 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.