|
12 | 12 |
|
13 | 13 | <!-- Jersey -->
|
14 | 14 | <dependency>
|
15 |
| - <groupId>com.sun.jersey</groupId> |
16 |
| - <artifactId>jersey-server</artifactId> |
17 |
| - <version>1.17</version> |
| 15 | + <groupId>org.glassfish.jersey</groupId> |
| 16 | + <artifactId>jersey-bom</artifactId> |
| 17 | + <version>2.4.1</version> |
| 18 | + <type>pom</type> |
18 | 19 | </dependency>
|
19 | 20 | <dependency>
|
20 |
| - <groupId>com.sun.jersey</groupId> |
21 |
| - <artifactId>jersey-servlet</artifactId> |
22 |
| - <version>1.17</version> |
| 21 | + <groupId>org.glassfish.jersey.core</groupId> |
| 22 | + <artifactId>jersey-server</artifactId> |
| 23 | + <version>2.4.1</version> |
23 | 24 | </dependency>
|
24 | 25 | <dependency>
|
25 |
| - <groupId>com.sun.jersey</groupId> |
26 |
| - <artifactId>jersey-client</artifactId> |
27 |
| - <version>1.17</version> |
| 26 | + <groupId>org.glassfish.jersey.containers</groupId> |
| 27 | + <artifactId>jersey-container-servlet</artifactId> |
| 28 | + <version>2.4.1</version> |
28 | 29 | </dependency>
|
29 | 30 | <dependency>
|
30 |
| - <groupId>com.sun.jersey</groupId> |
31 |
| - <artifactId>jersey-json</artifactId> |
32 |
| - <version>1.17</version> |
| 31 | + <groupId>com.fasterxml.jackson.jaxrs</groupId> |
| 32 | + <artifactId>jackson-jaxrs-json-provider</artifactId> |
| 33 | + <version>2.3.0</version> |
33 | 34 | </dependency>
|
34 | 35 |
|
35 |
| - <!-- Using HK2 for dependency injection --> |
| 36 | + <!-- Jersey client --> |
36 | 37 | <dependency>
|
37 |
| - <groupId>org.glassfish.hk2</groupId> |
38 |
| - <artifactId>hk2</artifactId> |
39 |
| - <version>2.2.0-b25</version> |
| 38 | + <groupId>org.glassfish.jersey.core</groupId> |
| 39 | + <artifactId>jersey-client</artifactId> |
| 40 | + <version>2.4.1</version> |
40 | 41 | </dependency>
|
41 | 42 |
|
42 | 43 | <!-- JAX-RS -->
|
43 | 44 | <dependency>
|
44 | 45 | <groupId>javax.ws.rs</groupId>
|
45 |
| - <artifactId>jsr311-api</artifactId> |
46 |
| - <version>1.1.1</version> |
| 46 | + <artifactId>javax.ws.rs-api</artifactId> |
| 47 | + <version>2.0</version> |
47 | 48 | </dependency>
|
48 | 49 |
|
49 | 50 | <!-- Various -->
|
|
57 | 58 | <artifactId>guava</artifactId>
|
58 | 59 | <version>15.0</version>
|
59 | 60 | </dependency>
|
| 61 | + <dependency> |
| 62 | + <groupId>com.googlecode.lambdaj</groupId> |
| 63 | + <artifactId>lambdaj</artifactId> |
| 64 | + <version>2.3.3</version> |
| 65 | + </dependency> |
| 66 | + |
60 | 67 | <dependency>
|
61 | 68 | <groupId>commons-logging</groupId>
|
62 | 69 | <artifactId>commons-logging</artifactId>
|
|
69 | 76 | </exclusions>
|
70 | 77 | </dependency>
|
71 | 78 |
|
| 79 | + <!-- Cucumber --> |
| 80 | + <dependency> |
| 81 | + <groupId>info.cukes</groupId> |
| 82 | + <artifactId>cucumber-picocontainer</artifactId> |
| 83 | + <version>1.1.5</version> |
| 84 | + <scope>test</scope> |
| 85 | + </dependency> |
72 | 86 | <dependency>
|
73 | 87 | <groupId>info.cukes</groupId>
|
74 | 88 | <artifactId>cucumber-junit</artifactId>
|
|
81 | 95 | <version>4.11</version>
|
82 | 96 | <scope>test</scope>
|
83 | 97 | </dependency>
|
| 98 | + <dependency> |
| 99 | + <groupId>org.skyscreamer</groupId> |
| 100 | + <artifactId>jsonassert</artifactId> |
| 101 | + <version>1.2.1</version> |
| 102 | + <scope>test</scope> |
| 103 | + </dependency> |
84 | 104 |
|
85 | 105 | <!-- Unit testing in Spock -->
|
86 | 106 | <dependency>
|
|
143 | 163 | </configuration>
|
144 | 164 | </plugin>
|
145 | 165 |
|
| 166 | + <!-- Use the Failsafe plugin to distinguish unit from integration/acceptance tests --> |
| 167 | + <plugin> |
| 168 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 169 | + <version>2.16</version> |
| 170 | + <executions> |
| 171 | + <execution> |
| 172 | + <goals> |
| 173 | + <goal>integration-test</goal> |
| 174 | + <goal>verify</goal> |
| 175 | + </goals> |
| 176 | + </execution> |
| 177 | + </executions> |
| 178 | + </plugin> |
| 179 | + |
| 180 | + <!-- Place the integration and acceptance tests in the it directory --> |
| 181 | + <plugin> |
| 182 | + <groupId>org.codehaus.mojo</groupId> |
| 183 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 184 | + <version>1.8</version> |
| 185 | + <executions> |
| 186 | + <execution> |
| 187 | + <id>add-source</id> |
| 188 | + <phase>generate-sources</phase> |
| 189 | + <goals> |
| 190 | + <goal>add-test-source</goal> |
| 191 | + </goals> |
| 192 | + <configuration> |
| 193 | + <sources> |
| 194 | + <source>src/it/java</source> |
| 195 | + </sources> |
| 196 | + </configuration> |
| 197 | + </execution> |
| 198 | + <execution> |
| 199 | + <id>add-resource</id> |
| 200 | + <phase>generate-sources</phase> |
| 201 | + <goals> |
| 202 | + <goal>add-test-resource</goal> |
| 203 | + </goals> |
| 204 | + <configuration> |
| 205 | + <resources> |
| 206 | + <resource> |
| 207 | + <directory>src/it/resources</directory> |
| 208 | + </resource> |
| 209 | + </resources> |
| 210 | + </configuration> |
| 211 | + </execution> |
| 212 | + </executions> |
| 213 | + </plugin> |
| 214 | + |
146 | 215 | <!-- Embedded Jetty instance -->
|
147 | 216 | <plugin>
|
148 | 217 | <groupId>org.eclipse.jetty</groupId>
|
149 | 218 | <artifactId>jetty-maven-plugin</artifactId>
|
150 | 219 | <version>9.1.0.v20131115</version>
|
| 220 | + <configuration> |
| 221 | + <scanIntervalSeconds>10</scanIntervalSeconds> |
| 222 | + <stopKey>foo</stopKey> |
| 223 | + <stopPort>9999</stopPort> |
| 224 | + </configuration> |
151 | 225 | <executions>
|
152 | 226 | <execution>
|
153 |
| - <id>jetty-run</id> |
| 227 | + <id>start-jetty</id> |
| 228 | + <phase>pre-integration-test</phase> |
154 | 229 | <goals>
|
155 | 230 | <goal>start</goal>
|
156 | 231 | </goals>
|
157 |
| - <phase>pre-integration-test</phase> |
| 232 | + <configuration> |
| 233 | + <scanIntervalSeconds>0</scanIntervalSeconds> |
| 234 | + <daemon>true</daemon> |
| 235 | + </configuration> |
158 | 236 | </execution>
|
159 | 237 | <execution>
|
160 |
| - <id>jetty-shutdown</id> |
| 238 | + <id>stop-jetty</id> |
| 239 | + <phase>post-integration-test</phase> |
161 | 240 | <goals>
|
162 | 241 | <goal>stop</goal>
|
163 | 242 | </goals>
|
164 |
| - <phase>post-integration-test</phase> |
165 | 243 | </execution>
|
166 | 244 | </executions>
|
167 | 245 | </plugin>
|
|
0 commit comments