hibernate-validator-integrationtest-wildfly
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-integrationtest-wildfly</artifactId> <version>8.0.2.Final</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <!-- ~ Hibernate Validator, declare and validate application constraints ~ ~ License: Apache License, Version 2.0 ~ See the license.txt file in the root directory or <http://www.apache.org/licenses/LICENSE-2.0>. --> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-parent</artifactId> <version>8.0.2.Final</version> <relativePath>../pom.xml</relativePath> </parent> <artifactId>hibernate-validator-integrationtest-wildfly</artifactId> <name>Hibernate Validator WildFly Integration Tests</name> <description>Hibernate Validator WildFly integration tests.</description> <properties> <wildfly.target-dir>${project.build.directory}/wildfly-${version.wildfly}</wildfly.target-dir> <wildfly.modules-dir>${wildfly.target-dir}/modules/system/layers/base</wildfly.modules-dir> <!-- <wildfly-secondary.target-dir>${project.build.directory}/wildfly-${version.wildfly.secondary}</wildfly-secondary.target-dir> <wildfly-secondary.modules-dir>${wildfly-secondary.target-dir}/modules/system/layers/base</wildfly-secondary.modules-dir> --> <surefire.jvm.args.additional>-Duser.language=en -Duser.country=US</surefire.jvm.args.additional> <hibernate-validator-parent.path>..</hibernate-validator-parent.path> </properties> <dependencies> <!-- test --> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>io.rest-assured</groupId> <artifactId>rest-assured</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator-test-utils</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator-cdi</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>joda-time</groupId> <artifactId>joda-time</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>javax.money</groupId> <artifactId>money-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.javamoney</groupId> <artifactId>moneta</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>javax.annotation</groupId> <artifactId>javax.annotation-api</artifactId> </exclusion> </exclusions> </dependency> <!-- For Moneta --> <dependency> <groupId>jakarta.annotation</groupId> <artifactId>jakarta.annotation-api</artifactId> <scope>test</scope> </dependency> <!-- For RestEasy --> <dependency> <groupId>jakarta.ws.rs</groupId> <artifactId>jakarta.ws.rs-api</artifactId> <scope>provided</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.testng</groupId> <artifactId>arquillian-testng-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.descriptors</groupId> <artifactId>shrinkwrap-descriptors-impl-javaee</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.weld</groupId> <artifactId>weld-core-impl</artifactId> <scope>test</scope> <exclusions> <exclusion> <groupId>org.jboss.spec.javax.interceptor</groupId> <artifactId> jboss-interceptors-api_1.2_spec </artifactId> </exclusion> <exclusion> <groupId>javax.enterprise</groupId> <artifactId>cdi-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>jakarta.interceptor</groupId> <artifactId>jakarta.interceptor-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.enterprise</groupId> <artifactId>jakarta.enterprise.cdi-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.persistence</groupId> <artifactId>jakarta.persistence-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>jakarta.ejb</groupId> <artifactId>jakarta.ejb-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-api-maven</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.shrinkwrap.resolver</groupId> <artifactId>shrinkwrap-resolver-impl-maven</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.wildfly.arquillian</groupId> <artifactId>wildfly-arquillian-container-managed</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator-modules</artifactId> <classifier>wildfly-${version.wildfly}-patch</classifier> <type>zip</type> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <filtering>true</filtering> <directory>src/test/resources</directory> </testResource> </testResources> <plugins> <plugin> <artifactId>maven-checkstyle-plugin</artifactId> </plugin> <plugin> <groupId>de.thetaphi</groupId> <artifactId>forbiddenapis</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <artifactId>maven-gpg-plugin</artifactId> <configuration> <skip>true</skip> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-failsafe-plugin</artifactId> <executions> <!-- WildFly current --> <execution> <id>wildfly-current-integration-test</id> <goals> <goal>integration-test</goal> <goal>verify</goal> </goals> <configuration> <systemPropertyVariables> <arquillian.launch>wildfly-current</arquillian.launch> </systemPropertyVariables> <summaryFile>target/failsafe-reports/failsafe-summary-wildfly-current.xml</summaryFile> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-wildfly-current</id> <phase>pre-integration-test</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <!-- WildFly current --> <artifactItem> <groupId>org.wildfly</groupId> <artifactId>wildfly-dist</artifactId> <version>${version.wildfly}</version> <type>tar.gz</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>copy-patch-current</id> <phase>pre-integration-test</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <!-- WildFly current --> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator-modules</artifactId> <version>${project.version}</version> <classifier>wildfly-${version.wildfly}-patch</classifier> <type>zip</type> <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>copy-javamoney-current</id> <phase>pre-integration-test</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <!-- WildFly current --> <artifactItem> <groupId>javax.money</groupId> <artifactId>money-api</artifactId> <version>${version.javax.money}</version> <outputDirectory>${wildfly.modules-dir}/javax/money/api/main/</outputDirectory> </artifactItem> <artifactItem> <groupId>org.javamoney</groupId> <artifactId>moneta</artifactId> <version>${version.org.javamoney.moneta}</version> <outputDirectory>${wildfly.modules-dir}/org/javamoney/moneta/main/</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <!-- WildFly current --> <execution> <id>copy-wildfly-current-resources</id> <phase>pre-integration-test</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${wildfly.modules-dir}</outputDirectory> <resources> <resource> <directory>src/test/modules</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <executions> <!-- WildFly current --> <execution> <id>apply-wildfly-current-patch-file</id> <phase>pre-integration-test</phase> <goals> <goal>execute-commands</goal> </goals> <configuration> <offline>true</offline> <jbossHome>${project.build.directory}/wildfly-${version.wildfly}/</jbossHome> <fail-on-error>false</fail-on-error> <commands> <command>patch apply ${project.build.directory}/hibernate-validator-modules-${project.version}-wildfly-${version.wildfly}-patch.zip</command> </commands> </configuration> </execution> </executions> </plugin> </plugins> </build> <profiles> <profile> <id>testWithJdk11+</id> <activation> <property> <name>java-version.test.release</name> <value>!8</value> </property> </activation> <properties> <!-- required by Arquillian to connect to the JMX interface of WildFly --> <surefire.jvm.args.add-opens>--add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED</surefire.jvm.args.add-opens> </properties> </profile> </profiles> </project>