Developing and debugging Maven Web projects in eclipse using the jetty plugin instead of M2E

Source: Internet
Author: User

The first step is to configure the jetty plugin on the appropriate Web project, configured as follows:

<plugin><groupId>Org.mortbay.jetty</groupId><Artifactid>Jetty-maven-plugin</Artifactid><Configuration>      <ContextPath>/</ContextPath>      <Stopport>9090</Stopport>      <Stopkey>Foo</Stopkey>    </Configuration></plugin>

The second step is to use Eclipse's external Tools configurations to create calls to external programs,

This step also requires the addition of an environment variable maven_opts in environment to support remote debugging, with the following settings:

Maven_opts=-xms512m-xmx1024m-xx:permsize=512m-xdebug-xnoagent-djava.compiler=none-xrunjdwp:transport=dt_socket , Address=4000,server=y,suspend=n

Settings are as follows:

The third step configures the external command to stop the Web program, as above, configure:

This completes the start and stop configuration of the Web program. If you need to debug, also need to be equipped with remote debugging, in the Debug menu of Eclipse choose "Debug configurations to set, such as:

Developing and debugging Maven Web projects in eclipse using the jetty plugin instead of M2E

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.