|
22 | 22 | <java.version>1.8</java.version>
|
23 | 23 | <output-relative-path>src/main/java</output-relative-path>
|
24 | 24 | <skipTests>false</skipTests>
|
25 |
| - <skipITs>${skipTests}</skipITs> |
26 | 25 | <skipUTs>${skipTests}</skipUTs>
|
27 | 26 | <springBootVersion>${project.parent.version}</springBootVersion>
|
28 | 27 | <forkCountTests>2.5C</forkCountTests>
|
|
46 | 45 | </plugins>
|
47 | 46 | </reporting>
|
48 | 47 |
|
49 |
| - <repositories> |
50 |
| - <repository> |
51 |
| - <id>jitpack.io</id> |
52 |
| - <url>https://jitpack.io</url> |
53 |
| - </repository> |
54 |
| - </repositories> |
55 |
| - |
56 | 48 | <dependencies>
|
57 | 49 | <dependency>
|
58 | 50 | <groupId>org.springframework.boot</groupId>
|
|
81 | 73 | <version>${springBootVersion}</version>
|
82 | 74 | <scope>compile</scope>
|
83 | 75 | </dependency>
|
| 76 | + |
84 | 77 | <dependency>
|
85 | 78 | <groupId>org.springframework.boot</groupId>
|
86 | 79 | <artifactId>spring-boot-starter-test</artifactId>
|
87 | 80 | <version>${springBootVersion}</version>
|
88 | 81 | <scope>test</scope>
|
| 82 | + <exclusions> |
| 83 | + <exclusion> |
| 84 | + <groupId>com.vaadin.external.google</groupId> |
| 85 | + <artifactId>android-json</artifactId> |
| 86 | + </exclusion> |
| 87 | + </exclusions> |
89 | 88 | </dependency>
|
| 89 | + |
90 | 90 | <dependency>
|
91 | 91 | <groupId>org.apache.httpcomponents</groupId>
|
92 | 92 | <artifactId>httpclient</artifactId>
|
|
132 | 132 | <groupId>org.mock-server</groupId>
|
133 | 133 | <artifactId>mockserver-client-java</artifactId>
|
134 | 134 | <version>5.4.1</version>
|
| 135 | + <exclusions> |
| 136 | + <exclusion> |
| 137 | + <groupId>com.vaadin.external.google</groupId> |
| 138 | + <artifactId>android-json</artifactId> |
| 139 | + </exclusion> |
| 140 | + </exclusions> |
135 | 141 | </dependency>
|
136 | 142 | <!-- https://mvnrepository.com/artifact/org.mock-server/mockserver-netty -->
|
137 | 143 | <dependency>
|
|
177 | 183 | <artifactId>eiffel-commons</artifactId>
|
178 | 184 | <version>0.0.12</version>
|
179 | 185 | </dependency>
|
| 186 | + <dependency> |
| 187 | + <groupId>org.json</groupId> |
| 188 | + <artifactId>json</artifactId> |
| 189 | + <version>20180130</version> |
| 190 | + </dependency> |
180 | 191 | </dependencies>
|
| 192 | + <dependencyManagement> |
| 193 | + </dependencyManagement> |
| 194 | + <repositories> |
| 195 | + <repository> |
| 196 | + <id>jitpack.io</id> |
| 197 | + <url>https://jitpack.io</url> |
| 198 | + </repository> |
| 199 | + </repositories> |
181 | 200 |
|
182 | 201 | <build>
|
183 | 202 | <resources>
|
|
237 | 256 | <source>src/functionaltest/resources</source>
|
238 | 257 | <source>src/integrationtest/java</source>
|
239 | 258 | <source>src/integrationtest/resources</source>
|
| 259 | + <source>src/systemtest/java</source> |
| 260 | + <source>src/systemtest/resources</source> |
240 | 261 | </sources>
|
241 | 262 | </configuration>
|
242 | 263 | </execution>
|
243 | 264 | </executions>
|
244 | 265 | </plugin>
|
245 |
| - |
246 | 266 | <plugin>
|
247 | 267 | <groupId>org.apache.maven.plugins</groupId>
|
248 | 268 | <artifactId>maven-surefire-plugin</artifactId>
|
|
258 | 278 | <exclude>TestBaseClass</exclude>
|
259 | 279 | <exclude>SeleniumBaseClass</exclude>
|
260 | 280 | <exclude>CommonSteps</exclude>
|
| 281 | + <exclude>**/systemtest/**</exclude> |
261 | 282 | </excludes>
|
262 | 283 | <includes>
|
263 | 284 | <include>${someModule.test.includes}</include>
|
264 | 285 | </includes>
|
265 | 286 | </configuration>
|
266 | 287 | </plugin>
|
267 |
| - |
268 |
| - <plugin> |
269 |
| - <groupId>org.apache.maven.plugins</groupId> |
270 |
| - <artifactId>maven-failsafe-plugin</artifactId> |
271 |
| - <version>2.22.0</version> |
272 |
| - <configuration> |
273 |
| - <skipTests>${skipTests}</skipTests> |
274 |
| - <skipITs>${skipITs}</skipITs> |
275 |
| - <systemPropertyVariables> |
276 |
| - <rabbit.host>localhost</rabbit.host> |
277 |
| - <rabbit.port>5672</rabbit.port> |
278 |
| - <rabbit.username>myuser</rabbit.username> |
279 |
| - <rabbit.password>myuser</rabbit.password> |
280 |
| - <rabbit.exchange>ei-exchange</rabbit.exchange> |
281 |
| - <rabbit.key>#</rabbit.key> |
282 |
| - </systemPropertyVariables> |
283 |
| - </configuration> |
284 |
| - <executions> |
285 |
| - <execution> |
286 |
| - <id>integration-test</id> |
287 |
| - <goals> |
288 |
| - <goal>integration-test</goal> |
289 |
| - <goal>verify</goal> |
290 |
| - </goals> |
291 |
| - <phase>integration-test</phase> |
292 |
| - </execution> |
293 |
| - </executions> |
294 |
| - </plugin> |
295 |
| - |
| 288 | + |
296 | 289 | <plugin>
|
297 | 290 | <groupId>org.apache.maven.plugins</groupId>
|
298 | 291 | <artifactId>maven-site-plugin</artifactId>
|
299 | 292 | <version>3.7.1</version>
|
300 | 293 | <configuration>
|
301 | 294 | <!-- This is where site.xml is located -->
|
302 | 295 | <siteDirectory>${basedir}/wiki</siteDirectory>
|
303 |
| - <!-- Github pages only generates documentation from docs |
| 296 | + <!-- Github pages only generates documentation from docs |
304 | 297 | directory -->
|
305 | 298 | <outputDirectory>${basedir}/docs</outputDirectory>
|
306 | 299 | </configuration>
|
|
312 | 305 | </dependency>
|
313 | 306 | </dependencies>
|
314 | 307 | </plugin>
|
315 |
| - |
316 | 308 | <plugin>
|
317 | 309 | <artifactId>maven-resources-plugin</artifactId>
|
318 | 310 | <version>3.1.0</version>
|
|
325 | 317 | <goal>copy-resources</goal>
|
326 | 318 | </goals>
|
327 | 319 | <configuration>
|
328 |
| - <!-- plugin requires all resources to exist within |
| 320 | + <!-- plugin requires all resources to exist within |
329 | 321 | resources/ directory -->
|
330 | 322 | <!-- but we don't want to break links in documentation -->
|
331 | 323 | <outputDirectory>${basedir}/wiki/resources/images</outputDirectory>
|
|
341 | 333 | </execution>
|
342 | 334 | </executions>
|
343 | 335 | </plugin>
|
344 |
| - |
345 | 336 | </plugins>
|
346 | 337 | </build>
|
| 338 | + <profiles> |
| 339 | + <!-- The Configuration of the integration-test profile --> |
| 340 | + <profile> |
| 341 | + <id>integrationTest</id> |
| 342 | + <properties> |
| 343 | + <skipUTs>true</skipUTs> |
| 344 | + </properties> |
| 345 | + <activation> |
| 346 | + <activeByDefault>false</activeByDefault> |
| 347 | + </activation> |
| 348 | + <build> |
| 349 | + <plugins> |
| 350 | + <plugin> |
| 351 | + <groupId>org.apache.maven.plugins</groupId> |
| 352 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 353 | + <version>2.22.0</version> |
| 354 | + <configuration> |
| 355 | + <skipTests>${skipTests}</skipTests> |
| 356 | + <skipITs>${skipITs}</skipITs> |
| 357 | + <systemPropertyVariables> |
| 358 | + <rabbitmq.host>localhost</rabbitmq.host> |
| 359 | + <rabbitmq.port>5672</rabbitmq.port> |
| 360 | + <rabbitmq.username>myuser</rabbitmq.username> |
| 361 | + <rabbitmq.password>myuser</rabbitmq.password> |
| 362 | + <rabbitmq.exchange>ei-exchange</rabbitmq.exchange> |
| 363 | + <rabbitmq.key>#</rabbitmq.key> |
| 364 | + </systemPropertyVariables> |
| 365 | + <excludes> |
| 366 | + <exclude>**/systemtest/**</exclude> |
| 367 | + </excludes> |
| 368 | + </configuration> |
| 369 | + <executions> |
| 370 | + <execution> |
| 371 | + <id>integration-test</id> |
| 372 | + <goals> |
| 373 | + <goal>integration-test</goal> |
| 374 | + <goal>verify</goal> |
| 375 | + </goals> |
| 376 | + <phase>integration-test</phase> |
| 377 | + </execution> |
| 378 | + </executions> |
| 379 | + </plugin> |
| 380 | + </plugins> |
| 381 | + </build> |
| 382 | + </profile> |
| 383 | + <!-- The Configuration of the system-test profile --> |
| 384 | + <profile> |
| 385 | + <id>systemTest</id> |
| 386 | + <properties> |
| 387 | + <skipUTs>true</skipUTs> |
| 388 | + </properties> |
| 389 | + <activation> |
| 390 | + <activeByDefault>false</activeByDefault> |
| 391 | + </activation> |
| 392 | + <build> |
| 393 | + <plugins> |
| 394 | + <plugin> |
| 395 | + <groupId>org.apache.maven.plugins</groupId> |
| 396 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 397 | + <version>2.22.0</version> |
| 398 | + <configuration> |
| 399 | + <systemPropertyVariables> |
| 400 | + <ei.config.properties.file.path>${systemtestProperties}</ei.config.properties.file.path> |
| 401 | + </systemPropertyVariables> |
| 402 | + <excludes> |
| 403 | + <exclude>**/frontend/*</exclude> |
| 404 | + </excludes> |
| 405 | + <includes> |
| 406 | + <include>**/systemtest/**</include> |
| 407 | + </includes> |
| 408 | + </configuration> |
| 409 | + <executions> |
| 410 | + <execution> |
| 411 | + <id>systemTest</id> |
| 412 | + <phase>integration-test</phase> |
| 413 | + <goals> |
| 414 | + <goal>integration-test</goal> |
| 415 | + <goal>verify</goal> |
| 416 | + </goals> |
| 417 | + </execution> |
| 418 | + </executions> |
| 419 | + </plugin> |
| 420 | + </plugins> |
| 421 | + </build> |
| 422 | + </profile> |
| 423 | + </profiles> |
347 | 424 | </project>
|
0 commit comments