Convert Maven2 project to MyEclipse project

Source: Internet
Author: User

Now in the project, everyone starts using jetty. It does not have to be deployed like Tomcat in MyEclipse, nor does it have to be placed under the WebApp folder as in Tomcat. Jetty can use the project directory structure directly.
When we use MAVEN, we should use MAVEN's standard directory structure. Since jetty can be used directly with the project's directory structure, jetty can be a good combination with Maven.

Of course we can also use Tomcat, and we can also deploy with MyEclipse. You need to follow these steps:

The brief steps are as follows:

0. Add Maven2 and MyEclipse plug-ins for Eclipse (m2eclipse:maven to eclipse)
1. Turn the MAVEN project into an Eclipse project by switching the DOS command window to the directory of the MAVEN project and entering the command: MVN eclipse:eclipse
2. Enter Eclipse to import the project into the workspace
3. Right-click on the project maven->enable
4. On the project, right-click Build path->configure build Path->java build path->libraries-> Remove the variable path that maven added
5. Right-click on the item Myeclipse->add Web capabilities-> to modify the Web root address (the point "Browse" button is specified as the Src/main/webapp folder under the current workspace)
6. Configuration is complete, you can use MyEclipse plug-in configuration server and so on to start normal development, automatic deployment, debugging and other operations.

Convert Maven2 project to MyEclipse project

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.