Create a new MAVEN project in STS

Source: Internet
Author: User
1. Building a Web project must be new to a MAVEN project, if Project does not directly see the MAVEN project, then select Other, and then in the search box under wizards after the word of Maven, and appear Maven folder, click to find Maven Click Next after Project.
2. Click Next again;
3. Select Org.apache.maven.archetypes Maven-archetype-webapps and click Next again
The 4.Group ID is generally filled in with COM. company name; Artifact Id is the project name. After filling in and no error, click Finish, then complete the initial creation.
5. The Engineering directory structure is as follows;
6. But this is not the standard structure for the default MAVEN project. We need to make some changes.
(1). Create a source Folder;folder under the project Name:src/main/java
7. This error may be reported cannot nest ' Ss/src/main/java ' inside ' ss/src/'. To enable the nesting exclude ' main/' from ' ss/src/';
8. Click to change the properties of the project to select the Java build path, find source, found that there are two wrong packets, select remove it;
9. Re-create a source Folder;folder under the project Name:src/main/java
10.OK, this time our Web project is initially built, and the rest is to modify the configuration file according to the requirements.

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.