idea jetty maven 热部署

idea maven jetty插件热部署

 

maven tomcat插件好像无法进行热部署,jetty可以如下配置实现热部署,但是idea无法进行自动编译,所以需要如下快捷键

  • Ctrl+Shift+F9,编译
  • Ctrl+F9,生成项目
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.1.v20120215</version>
<configuration>
<scanIntervalSeconds>1</scanIntervalSeconds><!-- 多少秒进行一次热部署 -->
<webApp>
<contextPath>/wp</contextPath>
</webApp>
<connectors>
<connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
<port>80</port>
</connector>
</connectors>
</configuration>
</plugin>
原文地址:https://www.cnblogs.com/MIXP/p/7350815.html