|
9 | 9 | </parent> |
10 | 10 | <artifactId>example-it</artifactId> |
11 | 11 | <properties> |
12 | | - <jboss.home>${project.build.directory}/wildfly-10.0.0.Final</jboss.home> |
| 12 | + <wildfly.version>10.0.0.Final</wildfly.version> |
| 13 | + <jboss.home>${project.build.directory}/wildfly-${wildfly.version}</jboss.home> |
13 | 14 | <!-- To be used when running CakeShopIT--> |
14 | 15 | <server.config>standalone-test.xml</server.config> |
15 | 16 |
|
16 | 17 | <!-- To be used when running CakeShopPostgresIT--> |
17 | 18 | <!--<server.config>standalone-postgres-test.xml</server.config>--> |
18 | | - |
19 | | - <wildfly.keepalive>false</wildfly.keepalive> |
20 | 19 | </properties> |
21 | 20 |
|
22 | 21 | <dependencies> |
|
241 | 240 | <executions> |
242 | 241 | <execution> |
243 | 242 | <id>unpack-wildfly</id> |
244 | | - <phase>process-test-classes</phase> |
| 243 | + <phase>pre-integration-test</phase> |
245 | 244 | <goals> |
246 | 245 | <goal>unpack</goal> |
247 | 246 | </goals> |
|
259 | 258 | </execution> |
260 | 259 | <execution> |
261 | 260 | <id>copy-wars</id> |
262 | | - <phase>process-test-classes</phase> |
| 261 | + <phase>pre-integration-test</phase> |
263 | 262 | <goals> |
264 | 263 | <goal>copy</goal> |
265 | 264 | </goals> |
|
369 | 368 | <executions> |
370 | 369 | <execution> |
371 | 370 | <id>copy-jboss-config</id> |
372 | | - <phase>process-test-classes</phase> |
| 371 | + <phase>pre-integration-test</phase> |
373 | 372 | <goals> |
374 | 373 | <goal>copy-resources</goal> |
375 | 374 | </goals> |
|
396 | 395 | <!--<executions>--> |
397 | 396 | <!--<execution>--> |
398 | 397 | <!--<id>copy-jboss-module</id>--> |
399 | | - <!--<phase>process-test-classes</phase>--> |
| 398 | + <!--<phase>pre-integration-test</phase>--> |
400 | 399 | <!--<goals>--> |
401 | 400 | <!--<goal>copy-resources</goal>--> |
402 | 401 | <!--</goals>--> |
|
427 | 426 | <executions> |
428 | 427 | <execution> |
429 | 428 | <id>Spawn a new H2 TCP server</id> |
430 | | - <phase>process-test-classes</phase> |
| 429 | + <phase>pre-integration-test</phase> |
431 | 430 | <goals> |
432 | 431 | <goal>spawn</goal> |
433 | 432 | </goals> |
434 | 433 | </execution> |
435 | 434 | <execution> |
436 | 435 | <id>Stop a spawned H2 TCP server</id> |
437 | | - <phase>verify</phase> |
| 436 | + <phase>post-integration-test</phase> |
438 | 437 | <goals> |
439 | 438 | <goal>stop</goal> |
440 | 439 | </goals> |
|
452 | 451 | <plugin> |
453 | 452 | <groupId>org.wildfly.plugins</groupId> |
454 | 453 | <artifactId>wildfly-maven-plugin</artifactId> |
455 | | - <version>1.0.2.MoJ.Fork</version> |
456 | 454 | <configuration> |
457 | 455 | <jbossHome>${jboss.home}</jbossHome> |
458 | 456 | <serverConfig>${server.config}</serverConfig> |
459 | | - <keepAlive>${wildfly.keepalive}</keepAlive> |
| 457 | + <timeout>120</timeout> |
460 | 458 | <!--<jvmArgs>-agentlib:jdwp=transport=dt_socket,address=8888,server=y,suspend=y</jvmArgs>--> |
| 459 | + <version>${wildfly.version}</version> |
461 | 460 | </configuration> |
462 | 461 | <executions> |
463 | 462 | <execution> |
464 | 463 | <id>start-server</id> |
465 | | - <phase>process-test-classes</phase> |
| 464 | + <phase>pre-integration-test</phase> |
466 | 465 | <goals> |
467 | 466 | <goal>start</goal> |
468 | 467 | </goals> |
| 468 | + <configuration> |
| 469 | + <startupTimeout>120</startupTimeout> |
| 470 | + </configuration> |
469 | 471 | </execution> |
470 | 472 | <execution> |
471 | 473 | <id>stop-server</id> |
472 | | - <phase>verify</phase> |
| 474 | + <phase>post-integration-test</phase> |
473 | 475 | <goals> |
474 | 476 | <goal>shutdown</goal> |
475 | 477 | </goals> |
|
0 commit comments