Maven jetty development in eclipse effective settings for hot deployment

Source: Internet
Author: User

Pom.xml settings:

Critical row, scan period (10 seconds), change restart <scanIntervalSeconds>10</scanIntervalSeconds> local Setup code:<build><!-- Jetty plugin, set context path and spring profile--><plugin><groupid>org.mortbay.jetty</groupid>< artifactid>jetty-maven-plugin</artifactid><version>${jetty.version}</version>< Configuration> <scanIntervalSeconds>10</scanIntervalSeconds> <systemProperties>< systemproperty><name>spring.profiles.active</name><value>development</value></ systemproperty></systemproperties><usetestclasspath>true</usetestclasspath>< webappconfig><contextpath>/${project.artifactid}</contextpath></webappconfig></ Configuration></plugin></build>

set the Run as--->run configuragtions---the >JRE label Property vm arguments:

-server-xms512m-xmx1024m-xx:permsize=512m-xx:maxpermsize=512m-xx:+cmsclassunloadingenabled-xx:+printgcdetails- Xloggc:%m2_home%/gc.log-xx:+heapdumponoutofmemoryerror-xx:heapdumppath=%m2_home%/java_pid.hprof

Setting maven_opts does not work, the above settings can work.

Maven jetty development in eclipse effective settings for hot deployment

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.