简易使用Jetty、Tomcat、GlassFish
<plugin> <groupId>org.eclipse.jetty</groupId><artifactId>jetty-maven-plugin</artifactId>
<version>9.1.0.RC0</version>
<executions>
<execution>
<id>start-jetty</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
</execution>
<execution>
<id>stop-jetty</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
页:
[1]