2012-02-14 2 views
0

У меня есть приложение, запущенное с использованием плагина maven для транспортировки с jetty6x. Я получаю HTTP/1.1 413 FULL head по определенным запросам. Я узнал, что мне нужно указать более крупный headerBufferSize (из-за большого размера заголовка запроса). Есть ли способ обеспечить его в конфигурации груза?Maven cargo jetty6x: возможно ли предоставить дополнительную конфигурацию Jetty?

Моя конфигурация груза:

<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> 

ответ

1

Вы хотите указать дополнительные конфигурационные файлы и каталоги, где они проходят под

<configuration><configfiles>... 

в конфигурации грузового плагином

см this post или cargo site.