Maven+eclipse+mac+tomcat Multi-Module release

Source: Internet
Author: User

Previous projects have been useful to MAVEN, but have not run web maven, so here's a note.

Structure of the project:

---master//parent

---web-project//

---client-project

---service-project

---dao-project

The first to find information on the Internet, such a way, that way, I am not configured on this side, and the configuration is very cumbersome, not yet run up. Finally I deleted the project and got back from Git.

Configuration steps:

1: Because my web-project layer is controller layer, so I use him to do the top.

Right-click Web-project---->properties--->deployment assmbly

2: Click Add

3: Select Project--->finish will client-project,service-project,dao-project this three items to join in

4: Download Tomcat, with no Tomcat configured environment (I'm not configured), add Tomcat to eclipse

Click Eclipse--->preferences

Server----->RUNTIME Environments---Add to extract the tomcat you downloaded.

Modify the Tomcat's publish path (my options here are gray, because my tomcat has been linked to my project, so I can't modify it, you're the first to create Tomcat, and no associated items can be modified.) Online said maven use of Src/main/webapp, I configured on the No)

OK, after the project is clean and automatically compiled, right-click Web-project,run as---->run on server is OK.

Maven+eclipse+mac+tomcat Multi-Module release

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.