Eclipse start Maven project

I believe that many people have encountered the problem of starting a maven-managed webapp project in eclipse. This article takes tomcat as an example to explain how to use eclipse and tomcat to start a maven webapp project.

  1. First import a maven project into eclipse
  2. Open the servers view of eclipse, Window → Show View → Other… 
  3. Click on the image below to create a new tomcat server 
  4. Select tomcat 7.0, then Next 
  5. Add a tomcat 7.0 installation, then finish 
  6. Right-click your maven project, click Properties, and select Project Facets on the left 
  7. Check Dynamic Web Module, then click on the Further Configuration available... below, this step is very important  
  8. Configure the context information of the project 
  9. Right-click the tomcat server in Servers, click Add and Remove..., and add the maven project to it 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326278172&siteId=291194637