Eclipse and MAVEN Environment building

Source: Internet
Author: User
Tags rar

Software 152 Liu Hao John

First, JDK and maven ready to download

Bits of 1.JDK corresponds to the number of bits in Eclipse (example: 32 bits corresponds to 32 bits)

2.maven File: Maven-3.3.9.rar

3.maven Warehouse file:. m2.rar

Second, installation

1. Select a working disk, such as e: Disk, to create a folder Jee

2. Place the extracted files in the Jee folder:

JDK root directory is E:\jee\jdk1.7

Eclipse root directory is E:\jee\eclipse

Eclipse working Directory is E:\jee\workspace

Maven root directory is E:\jee\maven-3.3.9

Maven Repository root directory is E:\jee\.m2

Third, the configuration

1. Set the configuration file for Eclipse Eclipse.ini, modify the virtual machine path, and add-VM before-vmargs E:\jee\jdk1.7\bin\javaw.exe

Note: Open the changes with WordPad,-VM do not wrap. The actual operation found that, considering the computer compatibility issues, some computers need to-VM content after the line to run.

2. Launch Eclipse, set maven in menu

Search for "maven" in Window-prefrences, open the "Installations" option to set it up, import the Maven repository and select, as

3. Set the MAVEN local warehouse path

Maven local warehouse By default under C:\Users\ username \.m2, c disk space is usually very tense and needs to be moved to another disk, the steps are as follows:

(1) Modify the Setting.xml file in the Conf folder under the MAVEN root directory (E:\jee\maven-3.3.9) and add a new line:

<localRepository>e:\jee\.m2\repository</localRepository>

(2) Modifying the MAVEN configuration in eclipse

In the menu window--prefrences, open "Maven--user settings" as

Iv. Summary

The MAVEN environment is simple to build and can be done with the steps you follow. Be aware of the number of JDK and Eclipse bits to match!

Eclipse and MAVEN Environment building

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.