Maven内置Jetty启动插件:
<!-- 添加此插件以便启动jetty -->
<plugin>
<groupId>org.mortbay.jetty</groupId>
<artifactId>maven-jetty-plugin</artifactId>
<version>6.1.10</version>
<configuration>
<encoding>UTF-8</encoding>
<scanIntervalSeconds>0</scanIntervalSeconds>
</configuration>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<scanIntervalSeconds>0</scanIntervalSeconds>
<daemon>true</daemon>
</configuration>
</execution>
</executions>
</plugin>
优先引用工作空间的依赖工程而不是直接去依赖Jar:
相关推荐
maven集成jetty必须jar包maven-jetty-plugin,内含多个版本
maven jetty 插件,直接放在ide的插件包即可
maven使用jetty启动,在pom.xml文件中添加Jetty plugin引用
maven+jetty 的ssh框架例子 直接运行 run:jetty
详细介绍Eclipse+maven+jetty开发环境搭建
maven-jetty-jspc-plugin-6.1.25-sources.jar
java开发中Eclipse+maven+jetty环境配置
maven-jetty-plugin-6.1.3.jar
maven-jetty-plugin-6.1.7.jar
maven-jetty-plugin-6.1.26.jar
maven-jetty-jspc-plugin-6.1.9.jar
maven-jetty6-plugin-1.0.jar
maven-jetty-plugin-6.1h.14.1-sources.jar
NULL 博文链接:https://zxf-noimp.iteye.com/blog/806399
maven的项目用jetty 服务器启动项目时配置此段配置,就可以实现热部署(意思就是eclipse改了代码可以不用重启服务器)
idea+maven+jetty,整合最简单实例。
maven-jetty-jspc-plugin-6.1.4.jar
maven jetty插件配置指南。 看看就知道。
maven-jetty-plugin-6.1.25-sources.jar