MAVEN Project Hot deployment, no need to restart the Tomcat server after code modification

Source: Internet
Author: User

Only need to add in the Pom.xml file

1     <Build>2         <Finalname>Myssm</Finalname>3         <!--Specify the type of server to deploy -4         <Plugins>5             <!--<plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactid>tomcat6-maven-plugin </artifactId>6 <version>2.2</version> </plugin> -7             <plugin>8                 <groupId>Org.apache.tomcat.maven</groupId>9                 <Artifactid>Tomcat7-maven-plugin</Artifactid>Ten                 <version>2.2</version> One                 <Configuration> A                     <Port>8080</Port> -                     <Path>/myssm</Path> -                     <uriencoding>UTF-8</uriencoding> the                     <Server>Tomcat7</Server> -                 </Configuration> -                 <!--Run this container when you are packing - -                 <executions> +                     <Execution> -                         <Phase>Package</Phase> +                         <Goals> A                             <goal>Run</goal> at                         </Goals> -                     </Execution> -                 </executions> -             </plugin> -         </Plugins> -     </Build>

After you debug the project, the package starts

MAVEN Project Hot deployment, no need to restart the Tomcat server after code modification

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.