Create a MAVEN project with eclipse

Source: Internet
Author: User

Prerequisite: The MAVEN plugin is installed in Eclipse, or the eclipse version is above Mars (self-integrated maven)

1. New Project--maven Project

  

2. Click Next by default

  

3. Select a Build Type

  

4, fill in GroupID and Artifactid,groupid is the top-level project name, Artifactid is the module name (specific can be specifically looked at the meaning of the two)

  

5, the project is completed, the directory structure is as follows. The current project directory is not a standard MAVEN directory structure, which is refined as a standard MAVEN directory structure

  

6. Refine the MAVEN directory structure, add resources and WebApp directories, and change the JDK version (Properties--java build path)

  

7. Modify the current project to a Web project

  

8, after modifying the Web project, reopen the Properties option, find deployment accembly Delete webcontent and add resources and WebApp directory as the publishing directory, the test directory does not need to be published, can also be deleted (or not deleted, optional)

  

Configuration complete:

  

MAVEN Project Setup Completed

Reference site:http://www.cnblogs.com/fangjins/archive/2012/05/06/2485459.html

Create a MAVEN project with 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.