Maven Combat (iv) Eclipse imports the Maven WebApp project and finishes publishing on the browser __web

Source: Internet
Author: User

1: Import Maven WebApp project (take Extdirectspring-demo as an example):

Improt maven->exsiting maven Projects-->browses.

2: Convert Maven WebApp project to eclipse Web project

Right-click the project and click Properties->project Facets

3 running MAVEN Web project projects

3.1 Configuring the Run configurations, compiling the Extdirectspring-demo project

Right-click the project, RUN->run configurations, Maven build/new configuration, Browse Workspace: Select Project, Goals:compiler,

Configurations: That is the path of maven3.0.5.zip compression package decompression;


Note If it appears: Maven No compiler is provided in this environment. Perhaps is running on a JRE rather than a JDK?

WORKAROUND: 1 Complete "maven Combat (0) Eclipse maven plugin plug-in installation and configuration"

2 Checking JDK Java_home

3 Eclipse JDK configuration is correct: go to Window > Preferences > Java > Installed jres > Check installed JREs. There must be a JDK here; Go to Window & Gt Preferences > Java > Installed jres > Execution environments, select JavaSE-1.7 (if JDK is 1.7), select JDK on the right. Then use the " Update the project configuration.

3.2 Right-click Project, RUN->run configurations, Maven build/new configuration, Goals:tomcat:run

4 Execute Access Address:



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.