The following two methods are available: method 1 is what I see on someone else's webpage, method 2 is my summary, and I personally feel that method 2 is more convenient. Which one can be used for your own experience.
Method 1: perform the following steps:
0. Add maven2 and myeclipse plug-ins for eclipse
1. Convert the maven project to the Eclipse project. The specific operation is to switch the doscommand window to the maven project directory, and enter the command: MVN Eclipse: Eclipse
2. Go to eclipse and import the project to the workspace.
3. Right-click Maven> enable in the project.
4. Right-click the project and choose build path> Configure build path> JAVA build path> libraries> remove the variable path added by Maven.
5. Right-click the project and choose myeclipse> Add web capabilities> modify web root address (Click Browse to specify the src/main/webapp folder in the current workspace)
6. After the configuration is complete, you can use the myeclipse plug-in to configure the server and start normal development, automatic deployment, debugging, and other operations.
method 2. The procedure is as follows :
0. add maven2 and myeclipse plug-ins for eclipse
1. convert a Maven project to an Eclipse project . to switch the doscommand window to the maven project directory, enter the following command: MVN Eclipse: Eclipse
2. go to myeclipse and import the workspace
3. Right-click the Pom. xml file to enable myeclipse to automatically convert the Java project to the web project in myeclipse.
4. right-click the project and choose myeclipse-> Add web capabilities -> modify the web root address (Click Browse to specify the src/main/webapp folder in the current workspace) ( but I have no idea how to modify the web root address after adding it. If anyone knows, let me know .)
6. after the configuration is complete, you can use the myeclipse plug-in to configure the server to start normal development, automatic deployment, debugging, and other operations.