maven中使用jetty插件

              <plugin>
                <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>8.1.16.v20140903</version>
                <configuration>
                    <webApp>
                        <!-- 应用名称 -->
                        <contextPath>/${artifactId}</contextPath>
                    </webApp>
                    <!-- 停止组合键 -->
                    <stopKey>CTRL+C</stopKey>
                    <!-- 端口 -->
                    <stopPort>8999</stopPort>
                    <!-- 每隔10s扫描配置文件是否被修改 -->
                    <scanIntervalSeconds>10</scanIntervalSeconds>
                    <scanTargets>
                        <!-- 扫描的配置文件路径 -->
                        <scanTarget>src/main/webapp/WEB-INF/web.xml</scanTarget>
                    </scanTargets>
                </configuration>
            </plugin>

 

posted @ 2015-09-12 14:24  lavel  阅读(342)  评论(0编辑  收藏  举报