Created
September 10, 2012 22:57
-
-
Save dannyduc/3694578 to your computer and use it in GitHub Desktop.
Maven Integration Test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project> | |
<properties> | |
<jetty.port>8123</jetty.port> | |
</properties> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
</plugin> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-failsafe-plugin</artifactId> | |
<configuration> | |
<environmentVariables> | |
<jetty.port>${jetty.port}</jetty.port> | |
<buildDirectory>${project.build.directory}</buildDirectory> | |
</environmentVariables> | |
</configuration> | |
<executions> | |
<execution> | |
<goals> | |
<goal>integration-test</goal> | |
<goal>verify</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
<plugin> | |
<groupId>org.mortbay.jetty</groupId> | |
<artifactId>maven-jetty-plugin</artifactId> | |
<version>6.1.15</version> | |
<configuration> | |
<!-- By default the artifactId is taken, override it with something simple --> | |
<contextPath>/datastream</contextPath> | |
<scanIntervalSeconds>2</scanIntervalSeconds> | |
<stopKey>foo</stopKey> | |
<stopPort>9999</stopPort> | |
<connectors> | |
<connector implementation="org.mortbay.jetty.nio.SelectChannelConnector"> | |
<port>${jetty.port}</port> | |
<maxIdleTime>60000</maxIdleTime> | |
</connector> | |
</connectors> | |
</configuration> | |
<executions> | |
<execution> | |
<id>start-jetty</id> | |
<phase>pre-integration-test</phase> | |
<goals> | |
<goal>run</goal> | |
</goals> | |
<configuration> | |
<scanIntervalSeconds>0</scanIntervalSeconds> | |
<daemon>true</daemon> | |
</configuration> | |
</execution> | |
<execution> | |
<id>stop-jetty</id> | |
<phase>post-integration-test</phase> | |
<goals> | |
<goal>stop</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment