Maven cargo jetty6x:是否可以提供额外的码头配置?

问题描述:

我使用maven货物插件与jetty6x启动了应用程序。对于某些请求,我得到HTTP/1.1 413 FULL head。我发现,我需要指定较大的headerBufferSize(由于请求头大小很大)。有没有办法将它提供给货物配置?Maven cargo jetty6x:是否可以提供额外的码头配置?

我的货物配置:

<plugin> 
    <groupId>org.codehaus.cargo</groupId> 
    <artifactId>cargo-maven2-plugin</artifactId> 
    <version>1.1.2</version> 
    <configuration> 
     <contextPath>/${jetty.admin.context}</contextPath> 
     <container> 
      <containerId>jetty6x</containerId> 
      <type>embedded</type> 
     </container> 
     <configuration> 
      <properties> 
       <cargo.servlet.port>${jetty.port}</cargo.servlet.port> 
      </properties> 
      <deployables> 
       <deployable> 
        <properties> 
         <context>/http</context> 
        </properties> 
        <groupId>xxx.xxx.server</groupId> 
        <artifactId>http</artifactId> 
        <type>war</type> 
       </deployable> 
      </deployables> 
     </configuration> 
     <wait>false</wait> 
    </configuration> 
    <executions> 
     <execution> 
      <id>start-container</id> 
      <phase>pre-integration-test</phase> 
      <goals> 
       <goal>start</goal> 
      </goals> 
     </execution> 
     <execution> 
      <id>stop-container</id> 
      <phase>post-integration-test</phase> 
      <goals> 
       <goal>stop</goal> 
      </goals> 
     </execution> 
    </executions> 
</plugin> 

你想指定额外的配置文件以及它们在

<configuration><configfiles>... 

走在货物插件的配置目录

this postcargo site