|
51 | 51 | <!-- the versions for BOMs, Packs and Plugins --> |
52 | 52 | <version.bom.ee>${version.server}</version.bom.ee> |
53 | 53 | <version.plugin.wildfly>5.0.0.Final</version.plugin.wildfly> |
| 54 | + <server.test.feature.pack.artifactId>wildfly-ee-galleon-pack</server.test.feature.pack.artifactId> |
| 55 | + <server.test.feature.pack.groupId>org.wildfly</server.test.feature.pack.groupId> |
| 56 | + <configure.ds.script>${project.basedir}/add-h2-ds.cli</configure.ds.script> |
54 | 57 | </properties> |
55 | 58 |
|
56 | 59 | <dependencyManagement> |
|
200 | 203 | <groupId>org.wildfly.plugins</groupId> |
201 | 204 | <artifactId>wildfly-maven-plugin</artifactId> |
202 | 205 | <configuration> |
203 | | - <discover-provisioning-info> |
204 | | - <version>${version.server}</version> |
205 | | - <addOns> |
206 | | - <addOn>h2-database:default</addOn> |
207 | | - </addOns> |
208 | | - </discover-provisioning-info> |
| 206 | + <feature-packs> |
| 207 | + <feature-pack> |
| 208 | + <groupId>${server.test.feature.pack.groupId}</groupId> |
| 209 | + <artifactId>${server.test.feature.pack.artifactId}</artifactId> |
| 210 | + <version>${version.server}</version> |
| 211 | + </feature-pack> |
| 212 | + <feature-pack> |
| 213 | + <location>org.wildfly:wildfly-datasources-galleon-pack:8.0.1.Final</location> |
| 214 | + </feature-pack> |
| 215 | + </feature-packs> |
| 216 | + <layers> |
| 217 | + <layer>core-tools</layer> |
| 218 | + <layer>batch-jberet</layer> |
| 219 | + <layer>h2-driver</layer> |
| 220 | + <layer>jaxrs-server</layer> |
| 221 | + <layer>jsf</layer> |
| 222 | + </layers> |
| 223 | + <scripts> |
| 224 | + <script>${configure.ds.script}</script> |
| 225 | + </scripts> |
209 | 226 | <!-- |
210 | 227 | Rename the output war to ROOT.war before adding it to the server, so that the |
211 | 228 | application is deployed in the root web context. |
|
214 | 231 | </configuration> |
215 | 232 | <executions> |
216 | 233 | <execution> |
| 234 | + <id>server-provisioning</id> |
| 235 | + <phase>generate-test-resources</phase> |
217 | 236 | <goals> |
218 | | - <goal>package</goal> |
| 237 | + <goal>provision</goal> |
| 238 | + </goals> |
| 239 | + </execution> |
| 240 | + <execution> |
| 241 | + <id>wildfly-start</id> |
| 242 | + <phase>pre-integration-test</phase> |
| 243 | + <goals> |
| 244 | + <goal>start</goal> |
| 245 | + <goal>execute-commands</goal> |
| 246 | + <goal>deploy</goal> |
| 247 | + </goals> |
| 248 | + </execution> |
| 249 | + <execution> |
| 250 | + <phase>post-integration-test</phase> |
| 251 | + <id>wildfly-stop</id> |
| 252 | + <goals> |
| 253 | + <goal>shutdown</goal> |
219 | 254 | </goals> |
220 | 255 | </execution> |
221 | 256 | </executions> |
|
0 commit comments