Eclipse + Tomcat + Maven environment Configuration

Source: Internet
Author: User

Note:ArticleThe content in [] is a variable. Please set it according to your actual situation. The content in "" is a reference to the text in the software.

 

1. Download 3 Software

2. Download tomcatplugin

3. Decompress tomcatplugin to [eclipse_home]/dropins, restart eclipse, and make sure that the small Tomcat icon appears on the toolbar.

4. Copy devloader.zip under eclipse_home/dropins/[tomcatplugin_home.zip to [tomcat_home]/lib, and change the suffix to jar.

5. Right-click [project] -- properties -- libraries and click Add variable to add the environment variable name: m2_repo, path: C:/users/[Windows username]/. m2/Repository.

6. right-click [project] -- properties -- tomcat, "is a tomcat project" check box, context name: "/[projectname]", subdirectory to set as Web application root select the webapp directory of the current project; then click the devloader classpath tab active devloader check box, all the packages used below are also selected, but test items must be excluded, such: /[project]/target/test-classes cannot be selected. Otherwise, an error is returned.

7. Now the environment is ready. Click the Tomcat icon to start the project!

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.