MAVEN Web project Eclipse build

Source: Internet
Author: User

1. New->other->maven Project, click Next

2. Continue Next

3, choose Maven-archetype-webapp, if can not find the filter inside search the Web, you can find. Continue Next

4, enter the name of your own definition, as follows:

5. After the project name, right-click->build path->add library-> Select Server Runtime,next

6. Check Apach Tomcat v7.0 (your version may be 6 or 8), Finish

7, to build MAVEN structure, you need to modify the project to manually add folders:

Src\main\java

Src\main\resources

Src\test\java

Src\test\resources

8, modify the project below the classpath, similar to the following configuration: (Specific later upload)

<classpathentry kind= "src" path= "Src/main/java"/>
<classpathentry kind= "src" path= "src/main/resources"/>
<classpathentry kind= "src" path= "Src/test/java"/>
<classpathentry kind= "src" path= "src/test/resources"/>

9. Right-click on the project name to->refresh.

10. Change the tomcat port to 80.

11. Deploy the project to Tomcat, run Tomcat, and the browser will enter "localhost/project name" to access the

MAVEN Web project Eclipse build

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.