Skip to content
This repository was archived by the owner on Dec 12, 2018. It is now read-only.

Commit 63dbe8c

Browse files
committed
Replaced jetty with cargo/tomcat
1 parent 4f17e75 commit 63dbe8c

1 file changed

Lines changed: 28 additions & 16 deletions

File tree

  • examples/spring-security-webmvc

examples/spring-security-webmvc/pom.xml

Lines changed: 28 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -189,32 +189,44 @@
189189
</executions>
190190
</plugin>
191191
<plugin>
192-
<groupId>org.eclipse.jetty</groupId>
193-
<artifactId>jetty-maven-plugin</artifactId>
194-
<version>9.4.0.v20161208</version>
195-
192+
<groupId>org.codehaus.cargo</groupId>
193+
<artifactId>cargo-maven2-plugin</artifactId>
194+
<version>1.4.18</version>
196195
<configuration>
197-
<scanIntervalSeconds>30</scanIntervalSeconds>
198-
199-
<stopPort>8081</stopPort>
200-
<stopKey>STOP</stopKey>
201-
<daemon>true</daemon>
202-
<webApp>
203-
<contextPath>/</contextPath>
204-
</webApp>
196+
<skip>${skipITs}</skip>
197+
<container>
198+
<containerId>tomcat8x</containerId>
199+
<zipUrlInstaller>
200+
<url>
201+
http://repo1.maven.org/maven2/org/apache/tomcat/tomcat/8.5.9/tomcat-8.5.9.zip
202+
</url>
203+
</zipUrlInstaller>
204+
</container>
205+
<deployables>
206+
<deployable>
207+
<groupId>com.stormpath.spring</groupId>
208+
<artifactId>stormpath-sdk-examples-spring-security-webmvc</artifactId>
209+
<properties>
210+
<context>/</context>
211+
</properties>
212+
</deployable>
213+
</deployables>
214+
<configuration>
215+
<properties>
216+
<cargo.tomcat.ajp.port>8010</cargo.tomcat.ajp.port>
217+
</properties>
218+
</configuration>
205219
</configuration>
206220
<executions>
207221
<execution>
208-
<id>start-jetty</id>
222+
<id>start-server</id>
209223
<phase>pre-integration-test</phase>
210224
<goals>
211-
<!-- stop any previous instance to free up the port -->
212-
<goal>stop</goal>
213225
<goal>start</goal>
214226
</goals>
215227
</execution>
216228
<execution>
217-
<id>stop-jetty</id>
229+
<id>stop-server</id>
218230
<phase>post-integration-test</phase>
219231
<goals>
220232
<goal>stop</goal>

0 commit comments

Comments
 (0)