【问题标题】:Maven cargo jetty6x: is it possible to provide additional Jetty configuration?Maven cargo jetty6x:是否可以提供额外的Jetty配置?
【发布时间】:2012-03-05 16:26:16
【问题描述】:

我使用带有 jetty6x 的 maven cargo 插件启动了应用程序。我收到HTTP/1.1 413 FULL head 某些请求。我发现,我需要指定更大的headerBufferSize(由于请求标头大小较大)。有没有办法将它提供给货物配置?

我的货物配置:

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

【问题讨论】:

    标签: maven jetty cargo


    【解决方案1】:

    你想指定额外的配置文件和它们所在的目录

    <configuration><configfiles>...
    

    在货物插件的配置中

    请参阅this postcargo site

    【讨论】:

      猜你喜欢
      • 2011-05-17
      • 1970-01-01
      • 2017-06-23
      • 2017-11-22
      • 2020-08-14
      • 2013-08-12
      • 2011-05-01
      • 1970-01-01
      • 2016-02-15
      相关资源
      最近更新 更多