Java EE maven Simple environment setup

Source: Internet
Author: User

Software 152 PO Double

First, download

1.jdk1.8.zip (above 1.7 is the best);

2.eclipse-jee-mars-2.zip;

3.maven 3.3.9.zip;

4.maven warehouse (. m2 file)

Second, installation (decompression)

1. Select a work disk, such as E: disk, to establish a directory Jee (here according to their own wishes to establish a directory, I take the establishment of JEE as an example;

2. Put the compressed package into the JEE directory and unzip it, the JDK root directory is e:\jee\jdk1.8;eclipse root directory is e:\jee\eclipse,eclipse, the working directory is e:\jee\workspace;maven root directory is e:\ Jee\maven-3.3.9,maven Warehouse root directory is E:\jee\.m2;

Third, set

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

2. Start Eclipse, set maven to search for "maven" in the menu window-prefrences, open the "Installations" option to set it up, click Add just now maven storage path:

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) Modify the MAVEN configuration in eclipse

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

The simple configuration of MAVEN is accomplished by clicking the "Browse ..." button on the "User settings" setting, selecting the Maven profile, and clicking the "Reindex" button below to update the index.

Java EE maven Simple environment setup

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.