首页 > 代码库 > Maven Jetty

Maven Jetty

<plugins>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-compiler-plugin</artifactId>                <version>3.1</version>                <configuration>                    <encoding>UTF-8</encoding>                    <source>1.7</source>                    <target>1.7</target>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-war-plugin</artifactId>                <version>2.4</version>                <configuration>                    <webappDirectory>src/main/webapp</webappDirectory>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-source-plugin</artifactId>                <version>2.2.1</version>                <executions>                    <execution>                        <phase>package</phase>                        <goals>                            <goal>jar-no-fork</goal>                        </goals>                    </execution>                    <execution>                        <id>attach-sources</id>                        <phase>deploy</phase>                    </execution>                </executions>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-javadoc-plugin</artifactId>                <version>2.9.1</version>                <executions>                    <execution>                        <id>attach-javadocs</id>                        <phase>deploy</phase>                    </execution>                </executions>                <configuration>                    <aggregate>true</aggregate>                </configuration>            </plugin>            <plugin>                <groupId>org.apache.maven.plugins</groupId>                <artifactId>maven-deploy-plugin</artifactId>                <version>2.8.1</version>                <executions>                    <execution>                        <id>deploy</id>                        <phase>deploy</phase>                        <goals>                            <goal>deploy</goal>                        </goals>                    </execution>                </executions>            </plugin>            <plugin>                <groupId>org.mortbay.jetty</groupId>                <artifactId>jetty-maven-plugin</artifactId>                <version>8.1.15.v20140411</version>                <configuration>                    <webApp>                        <contextPath>/jbpm-01</contextPath>                    </webApp>                    <stopKey>exit</stopKey>                    <stopPort>9090</stopPort>                    <scanIntervalSeconds>1</scanIntervalSeconds>                    <connectors>                        <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">                            <port>8080</port>                            <maxIdleTime>60000</maxIdleTime>                        </connector>                    </connectors>                    <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">                        <filename>target/access.log</filename>                        <retainDays>90</retainDays>                        <append>false</append>                        <extended>false</extended>                        <logTimeZone>GMT+8:00</logTimeZone>                    </requestLog>                    <!-- <systemProperties> <systemProperty> <name>productionMode</name>                         <value>${productionMode}</value> </systemProperty> </systemProperties> -->                </configuration>            </plugin>        </plugins>
-server -Dfile.encoding=UTF-8 -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+PrintGCDetails -Xloggc:%M2_HOME%/gc.log -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=%M2_HOME%/java_pid<pid>.hprof -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=yMAVEN_OPTS = -server -Xdebug -Xnoagent -Djava.compiler=NONE -Dfile.encoding=UTF-8 -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=yMAVEN_OPTS = -server -Xdebug -Xnoagent -Xms256m -Xmx512m -XX:PermSize=256m -XX:MaxPermSize=256m -Djava.compiler=NONE -Dfile.encoding=UTF-8 -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y