Create Maven management under Eclipse

Source: Internet
Author: User

I. Building the Environment

1.1JDK

There's no need to say more about JDK configuration. Add JDK installation path directly under the computer environment variable path

1.2eclipse

Install Eclipse

1.3 maven

1,3.1 Configuring MAVEN Environment variables

  

Verifying that the MAVEN environment variable is configured successfully

  

1.3.2 Eclipse configuration Maven Plugin

Help->eclipse Marketplace search keyword maven to plugin maven integration for Eclipse and click Install

Remember to restart. In this case, we need to install the MAVEN here with the MAVEN path configured above, need to do the following configuration.

1.4spring

Two creating a MAVEN project

2.1 Select Maven--------New in the new window. Click Next

2.2 Selecting a Project workspace

2.3 Select project Type

  

2.4

GROUPID: The project organization's reverse domain name, such as the Apache project can org.apache start

Artfactid: Represents the unique identity of a single item under GroupID

Version: Release of the project, version ID plus snapshot tag

Packing: The project's packaged output, which defaults to the jar. Refers to building a Web project for a war project package.

Groupid,artfactid,version identifies the uniqueness of the project, packing can default

2.5 just created the first MAVEN project as shown in the initial structure

Three. Configure the MAVEN project

3.1 Adding the source folder

Next you need to add a Src/main/java,src/test/java, src/test/resources three folders.

Open Project Edit Properties--java build path, click Source

Let's remove these two packages before we re-establish

3.2 Configuring the Project compilation Environment

Then modify project facets to change Java to 1.7 first.

Dynamic Web module cannot be directly modified here to 3.0, you need to open a. Settings folder under the project directory, open the Org.eclipse.wst.common.project.facet.core.xml and make the following changes:

Restart Eclipe to see that the changes are in effect.

  

Create Maven management under Eclipse

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.