Maven-Environment configuration

Source: Internet
Author: User

Maven is a Java-based tool, so the first thing to do is install the JDK.

1. Check the Java installation

Open the console and execute the following Java command if the platform output is installed successfully


2. Setting up the Java environment

Set the JAVA_HOME environment variable and point to the JAVA installation directory on your machine. For example:

Add the Java compiler address to the path of the system paths.

Variable name: Path

Variable value:%java_home%\bin;%java_home%\jre\bin;


3. Download maven files

Address: http://maven.apache.org/download.cgi The case version is 3.0.5

Ps:maven corresponding JDK version

Maven 3.3 requires JDK 1.7 or higher

Maven 3.2 requires JDK 1.6 or higher

Maven 3.0/3.1 requires JDK 1.5 or above


4. Extracting Maven Files

Unzip the file to the location you want to install Maven and get the apache-maven-3.0.5 subdirectory. This example is D:\apache-maven-3.0.5


5. Setting the MAVEN environment variable

Set environment variables using System properties.

maven_home=d:\apache-maven-3.0.5

Path=%maven_home%\bin;


6. Verifying MAVEN Installation

Open the console and execute the mvn-version command. If normal should be entered as follows:

At this point, all MAVEN settings have been completed

Itmyhome

Maven-Environment configuration

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.