MAVEN Installation and Eclipse integration

Source: Internet
Author: User
1.Maven is what.

MAVEN is a project management and synthesis tool. MAVEN provides a complete lifecycle framework for developers to build. The development team can automate the infrastructure of the project, and MAVEN uses the standard directory structure and the default build lifecycle.
In multiple development team environments, MAVEN can set up the configuration work in a very short time by standard. Because most of the project's settings are simple and reusable, MAVEN makes it easier for developers to work, creating reports, checking, building, and testing automation settings.
We've learned what Maven is, and next we're going to install it using MAVEN. 2. Where to get maven.

Download Address: http://maven.apache.org/download.html
Latest Version: Apache-maven-3.3.9-bin.zip;
You must install the JDK before installing MAVEN, I assume you have the JDK installed.
Everything is ready. 3. How to install MAVEN. Unzip apache-maven-3.3.9-bin.zip to D:\hugyWork\JavaWork\Java\apache-maven-3.3.9 My Computer-Properties-Advanced system settings-environment variables In the System environment variable click New variable name: M2_home variable Value: "D:\hugyWork\JavaWork\Java\apache-maven-3.3.9" in the environment variable to find path-Click Edit, add the value of the variable%m2_home%\ Bin
All right, save it. Enter Mvn-version or Mvn-v in DOS

The version number of the MAVEN and the version number of the JDK as well as the system environment will then appear, indicating that the installation was successful.
After the installation was successful, our Maven has been able to use it, but it is not easy to develop. And then we're going to integrate into eclipse. 4. How to integrate Maven in Eclipse.

First explain my eclipse is
Eclipse IDE for Java EE developers release 4.2.0 with a
1. Start Eclipse
2. Click on the Eclipse menu bar help- >eclipse Marketplace search keyword MAVEN to plug-in maven integration for Eclipse and click Install, as shown below:

3. Click Install to install

4. After installation After completing, click Restart Eclipse.
5. Next we will use the MAVEN we installed. Window>>maven>>installations Click Add to select the path you just installed D:\Java\apache-maven-3.3.9.
6. To configure the uncomment localrepository in the setting file in the D:\hugyWork\JavaWork\Java\apache-maven-3.3.9\conf directory and modify to
D:\hugyWork \javawork\java\repo
7. Below there is a global setting click Browse ... select
Path D:\hugyWork\JavaWork\Java\apache-maven-3.3.9\ Conf\settings.xml.
OK. MAVEN is now configured to complete.

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.