<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.Request.maxFormContentSize</Arg>
<Arg>-1</Arg>
</Call>
<Call name="setAttribute">
<Arg>org.eclipse.jetty.server.Request.maxFormKeys</Arg>
<Arg>-1</Arg>
</Call>
</Configure>
<!-- 避开系统启动时对因找不到事物管理时,暂停等待 --> <plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>8.1.15.v20140411</version> <configuration> <stopKey>stop</stopKey> <stopPort>9988</stopPort> <!-- 热部署时间 --> <scanIntervalSeconds>10</scanIntervalSeconds> <contextXml>${project.basedir}/src/main/resources/jetty-context.xml</contextXml> <!-- 设置jett8忽略提交表单长度大小限制 --> <jettyXml>${project.basedir}/src/main/resources/jetty.xml</jettyXml> <webApp> <!-- 设置系统访问路径(工程根目录,目的是为了编译java源码自动部署到jetty,爽吧!!!) --> <contextPath>/IMoveManage</contextPath> <!-- jetty热部署临时路径 --> <tempDirectory>${project.build.directory}/work</tempDirectory> <!-- 解决jetty热部署不能修改静态资源问题 jetty-webapp-8.1.15.v20140411.jar --> <defaultsDescriptor>src/main/resources/webdefault.xml</defaultsDescriptor> </webApp> <!-- 设置 jetty server 的端口 --> <connectors> <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector"> <port>8888</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> </configuration> </plugin>