|
16 | 16 | <maven.compiler.target>1.8</maven.compiler.target>
|
17 | 17 |
|
18 | 18 | <org.hibernate.ogm.version>5.1.0.CR1</org.hibernate.ogm.version>
|
| 19 | + <org.hibernate.validator.version>6.0.0.Alpha1</org.hibernate.validator.version> |
19 | 20 | <!-- used to find the wildfly module dist -->
|
20 | 21 | <org.hibernate.orm.version>5.1.2.Final</org.hibernate.orm.version>
|
21 | 22 | <org.hibernate.search.version>5.6.0.Final</org.hibernate.search.version>
|
|
24 | 25 | <org.jboss.wildfly-arquillian.version>8.2.1.Final</org.jboss.wildfly-arquillian.version>
|
25 | 26 | <org.jboss.wildfly.version>10.1.0.Final</org.jboss.wildfly.version>
|
26 | 27 | <org.hibernate.ogm.wildfly.classifier>wildfly-10-dist</org.hibernate.ogm.wildfly.classifier>
|
| 28 | + <wildfly-maven-plugin.version>1.1.0.Alpha11</wildfly-maven-plugin.version> |
27 | 29 |
|
28 | 30 | <jboss.home>${project.build.directory}/wildfly-${org.jboss.wildfly.version}</jboss.home>
|
29 | 31 | </properties>
|
|
93 | 95 | <dependency>
|
94 | 96 | <groupId>org.hibernate</groupId>
|
95 | 97 | <artifactId>hibernate-validator</artifactId>
|
96 |
| - <version>5.4.0.Final</version> |
| 98 | + <version>${org.hibernate.validator.version}</version> |
97 | 99 | <scope>provided</scope>
|
98 | 100 | </dependency>
|
99 | 101 | <dependency>
|
|
184 | 186 | <plugin>
|
185 | 187 | <groupId>org.wildfly.plugins</groupId>
|
186 | 188 | <artifactId>wildfly-maven-plugin</artifactId>
|
187 |
| - <version>1.0.1.Final</version> |
| 189 | + <version>${wildfly-maven-plugin.version}</version> |
188 | 190 | </plugin>
|
189 | 191 | <plugin>
|
190 | 192 | <groupId>org.jboss.as.plugins</groupId>
|
|
293 | 295 | </artifactItems>
|
294 | 296 | </configuration>
|
295 | 297 | </execution>
|
| 298 | + <execution> |
| 299 | + <id>copy-bv-patch</id> |
| 300 | + <phase>pre-integration-test</phase> |
| 301 | + <goals> |
| 302 | + <goal>copy</goal> |
| 303 | + </goals> |
| 304 | + <configuration> |
| 305 | + <artifactItems> |
| 306 | + <artifactItem> |
| 307 | + <groupId>org.hibernate.validator</groupId> |
| 308 | + <artifactId>hibernate-validator-modules</artifactId> |
| 309 | + <version>${org.hibernate.validator.version}</version> |
| 310 | + <classifier>wildfly-${org.jboss.wildfly.version}-patch</classifier> |
| 311 | + <type>zip</type> |
| 312 | + <outputDirectory>${project.build.directory}</outputDirectory> |
| 313 | + </artifactItem> |
| 314 | + </artifactItems> |
| 315 | + </configuration> |
| 316 | + </execution> |
| 317 | + </executions> |
| 318 | + </plugin> |
| 319 | + <plugin> |
| 320 | + <groupId>org.wildfly.plugins</groupId> |
| 321 | + <artifactId>wildfly-maven-plugin</artifactId> |
| 322 | + <executions> |
| 323 | + <!-- Currently the WF Maven plug-in cannot apply offline commands, although patch itself wouldn't require a running |
| 324 | + server; see https://issues.jboss.org/projects/WFMP/issues/WFMP-11 --> |
| 325 | + <execution> |
| 326 | + <id>start-wildfly-for-patching</id> |
| 327 | + <phase>pre-integration-test</phase> |
| 328 | + <goals> |
| 329 | + <goal>start</goal> |
| 330 | + </goals> |
| 331 | + </execution> |
| 332 | + <execution> |
| 333 | + <id>apply-patch-file</id> |
| 334 | + <phase>pre-integration-test</phase> |
| 335 | + <goals> |
| 336 | + <goal>execute-commands</goal> |
| 337 | + </goals> |
| 338 | + <configuration> |
| 339 | + <fail-on-error>false</fail-on-error> |
| 340 | + <commands> |
| 341 | + <command>patch apply --path ${project.build.directory}/hibernate-validator-modules-${org.hibernate.validator.version}-wildfly-${org.jboss.wildfly.version}-patch.zip</command> |
| 342 | + </commands> |
| 343 | + </configuration> |
| 344 | + </execution> |
| 345 | + <execution> |
| 346 | + <id>shutdown-wildfly-for-patching</id> |
| 347 | + <phase>pre-integration-test</phase> |
| 348 | + <goals> |
| 349 | + <goal>shutdown</goal> |
| 350 | + </goals> |
| 351 | + </execution> |
296 | 352 | </executions>
|
| 353 | + <configuration> |
| 354 | + <jbossHome>${jboss.home}</jbossHome> |
| 355 | + </configuration> |
297 | 356 | </plugin>
|
298 | 357 | </plugins>
|
299 | 358 | </build>
|
|
0 commit comments