Converting a web project in Maven to a web project in myeclipse (automatic deployment and debugging)

Source: Internet
Author: User

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.

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.