IDEA Maven 中添加 Jetty插件

<!-- maven jetty plugin configuration -->
<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>${maven-jetty-version}</version>
    <configuration>
        <connectors>
            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                <port>8081</port>
                <maxIdleTime>60000</maxIdleTime>
            </connector>
        </connectors>
        <!--熱部署掃描的時間間隔-->
        <scanIntervalSeconds>10</scanIntervalSeconds>
    </configuration>
</plugin>

配置方式2:java

<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>maven-jetty-plugin</artifactId>
    <version>6.1.26</version>
    <configuration>
        <jvmArgs>-Xmx2048m -Xms1536m -XX:PermSize=128m -XX:MaxPermSize=256m</jvmArgs>
        <!-- http://docs.codehaus.org/display/JETTY/Maven+Jetty+Plugin -->
        <scanIntervalSeconds>10</scanIntervalSeconds>
        <connectors>
            <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
              <port>80</port>
              <maxIdleTime>60000</maxIdleTime>
            </connector>
        </connectors>
        <contextPath></contextPath>
    </configuration>
</plugin>
相關文章
相關標籤/搜索