fix jetty-maven-plugin configuration

This commit is contained in:
Sebastian Sdorra
2014-10-17 21:47:54 +02:00
parent 04baca83b5
commit b88963f4b1
2 changed files with 31 additions and 4 deletions

View File

@@ -455,9 +455,6 @@
<artifactId>jetty-maven-plugin</artifactId>
<version>${jetty.version}</version>
<configuration>
<httpConnector>
<port>8081</port>
</httpConnector>
<stopPort>8005</stopPort>
<stopKey>STOP</stopKey>
<systemProperties>

View File

@@ -31,7 +31,7 @@ http://bitbucket.org/sdorra/scm-manager
-->
<Configure id="ScmServer" class="org.eclipse.jetty.server.Server">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">
<!-- increase header size for mercurial -->
@@ -39,4 +39,34 @@ http://bitbucket.org/sdorra/scm-manager
<Set name="responseHeaderSize">16384</Set>
</New>
<Call id="httpConnector" name="addConnector">
<Arg>
<New class="org.eclipse.jetty.server.ServerConnector">
<Arg name="server">
<Ref refid="Server" />
</Arg>
<Arg name="factories">
<Array type="org.eclipse.jetty.server.ConnectionFactory">
<Item>
<New class="org.eclipse.jetty.server.HttpConnectionFactory">
<Arg name="config">
<Ref refid="httpConfig" />
</Arg>
</New>
</Item>
</Array>
</Arg>
<Set name="host">
<Property name="jetty.host" />
</Set>
<Set name="port">
<Property name="jetty.port" default="8081" />
</Set>
<Set name="idleTimeout">
<Property name="http.timeout" default="30000"/>
</Set>
</New>
</Arg>
</Call>
</Configure>