hibernate-validator-tck-runner
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>org.hibernate.validator</groupId> <artifactId>hibernate-validator-tck-runner</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-tck-runner</artifactId> <name>Hibernate Validator TCK Runner</name> <description>Aggregates dependencies and runs the Jakarta Bean Validation TCK</description> <properties> <tck.suite.file>${project.build.directory}/dependency/beanvalidation-tck-tests-suite.xml</tck.suite.file> <wildfly.target-dir>${project.build.directory}/wildfly-${version.wildfly.tck}</wildfly.target-dir> <validation.provider>org.hibernate.validator.HibernateValidator</validation.provider> <remote.debug /> <hibernate-validator-parent.path>..</hibernate-validator-parent.path> </properties> <dependencies> <dependency> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> </dependency> <dependency> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator</artifactId> </dependency> <dependency> <!-- We exclude this dependency from the classpath when running tests with OracleJDK 8, because OracleJDK 8 already bundles JavaFX. --> <groupId>org.openjfx</groupId> <artifactId>javafx-base</artifactId> </dependency> <dependency> <groupId>org.glassfish.expressly</groupId> <artifactId>expressly</artifactId> </dependency> <dependency> <groupId>jakarta.persistence</groupId> <artifactId>jakarta.persistence-api</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.testng</groupId> <artifactId>testng</artifactId> </dependency> <dependency> <groupId>jakarta.validation</groupId> <artifactId>beanvalidation-tck-tests</artifactId> <version>${version.jakarta.validation.beanvalidation-tck}</version> <exclusions> <exclusion> <groupId>org.jboss.test-audit</groupId> <artifactId>jboss-test-audit-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>org.jboss.arquillian.testng</groupId> <artifactId>arquillian-testng-container</artifactId> <scope>test</scope> </dependency> <dependency> <groupId>org.jboss.arquillian.protocol</groupId> <artifactId>arquillian-protocol-servlet-jakarta</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <testResources> <testResource> <filtering>true</filtering> <directory>src/test/resources</directory> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <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-dependency-plugin</artifactId> <executions> <execution> <id>copy-tck-bv-api-signature-file</id> <phase>generate-test-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>jakarta.validation</groupId> <artifactId>beanvalidation-tck-tests</artifactId> <version>${version.jakarta.validation.beanvalidation-tck}</version> <type>jar</type> <overWrite>true</overWrite> </artifactItem> </artifactItems> <!-- We just need the signature file and nothing else --> <includes>**/*.sig</includes> <outputDirectory>${project.build.directory}/api-signature</outputDirectory> </configuration> </execution> <execution> <id>copy-tck-test-suite-file</id> <phase>generate-test-sources</phase> <goals> <goal>copy</goal> </goals> <configuration> <stripVersion>true</stripVersion> <artifactItems> <artifactItem> <groupId>jakarta.validation</groupId> <artifactId>beanvalidation-tck-tests</artifactId> <type>xml</type> <classifier>suite</classifier> <overWrite>false</overWrite> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <suiteXmlFiles> <suiteXmlFile>${tck.suite.file}</suiteXmlFile> </suiteXmlFiles> <systemProperties> <property> <name>validation.provider</name> <value>${validation.provider}</value> </property> </systemProperties> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-report-plugin</artifactId> <executions> <execution> <id>generate-test-report</id> <phase>test</phase> <goals> <goal>report-only</goal> </goals> </execution> </executions> <configuration> <outputDirectory>${project.build.directory}/surefire-reports</outputDirectory> <outputName>test-report</outputName> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>local</id> <activation> <property> <name>incontainer</name> <value>!true</value> </property> </activation> <properties> <!-- Use Local for testing without security manager --> <arquillian.protocol>LocalSecurityManagerTesting</arquillian.protocol> <!-- Remove for testing without security manager --> <surefire.jvm.args.additional>-DincludeJavaFXTests=true -Djava.security.manager -Djava.security.policy=${project.build.directory}/test-classes/test.policy -Duser.language=en -Duser.country=US</surefire.jvm.args.additional> <!-- Uncomment the following line to obtain the access log of the security manager --> <!--<surefire.jvm.args.additional>-DincludeJavaFXTests=true -Djava.security.manager -Djava.security.policy=${project.build.directory}/test-classes/test.policy -Djava.security.debug=access -Duser.language=en -Duser.country=US</surefire.jvm.args.additional>--> </properties> <dependencies> <dependency> <groupId>jakarta.validation</groupId> <artifactId>beanvalidation-standalone-container-adapter</artifactId> <version>${version.jakarta.validation.beanvalidation-tck}</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <systemProperties> <property> <name>validation.provider</name> <value>${validation.provider}</value> </property> <property> <name>excludeIntegrationTests</name> <value>true</value> </property> </systemProperties> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>incontainer-debug</id> <activation> <property> <name>debug</name> </property> </activation> <properties> <remote.debug>-Xnoagent -Djava.compiler=NONE -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=5005</remote.debug> </properties> </profile> <profile> <id>incontainer-prepared</id> <activation> <property> <name>incontainer-prepared</name> </property> </activation> <properties> <surefire.jvm.args.additional>-DincludeJavaFXTests=true -Xmx1024m -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Duser.language=en -Duser.country=US</surefire.jvm.args.additional> <arquillian.protocol>Servlet 5.0</arquillian.protocol> </properties> <dependencies> <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> <version>${project.version}</version> <classifier>wildfly-${version.wildfly.tck}-patch</classifier> <type>zip</type> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack-wildfly</id> <phase>generate-test-resources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.wildfly</groupId> <artifactId>wildfly-dist</artifactId> <version>${version.wildfly.tck}</version> <type>tar.gz</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> <execution> <id>copy-patch</id> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>${project.groupId}</groupId> <artifactId>hibernate-validator-modules</artifactId> <version>${project.version}</version> <classifier>wildfly-${version.wildfly.tck}-patch</classifier> <type>zip</type> <outputDirectory>${project.build.directory}</outputDirectory> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <executions> <execution> <id>apply-patch-file</id> <phase>generate-test-resources</phase> <goals> <goal>execute-commands</goal> </goals> <configuration> <offline>true</offline> <fail-on-error>false</fail-on-error> <commands> <command>patch apply ${project.build.directory}/hibernate-validator-modules-${project.version}-wildfly-${version.wildfly.tck}-patch.zip</command> </commands> </configuration> </execution> </executions> <configuration> <jbossHome>${wildfly.target-dir}</jbossHome> </configuration> </plugin> <!-- Additional resources are copied in the profiles below --> <!-- Update standalone.xml --> <plugin> <groupId>org.codehaus.gmavenplus</groupId> <artifactId>gmavenplus-plugin</artifactId> <executions> <execution> <id>update-standalone-xml</id> <phase>generate-test-resources</phase> <goals> <goal>execute</goal> </goals> <configuration> <scripts> <script>file:///${pom.basedir}/src/script/updateStandaloneXml.groovy</script> </scripts> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <systemPropertyVariables> <arquillian.launch>incontainer</arquillian.launch> </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>incontainer-provided</id> <activation> <property> <name>incontainer-provided</name> </property> </activation> <properties> <surefire.jvm.args.additional>-Xmx1024m -Djava.util.logging.manager=org.jboss.logmanager.LogManager -Duser.language=en -Duser.country=US</surefire.jvm.args.additional> <arquillian.protocol>Servlet 5.0</arquillian.protocol> </properties> <dependencies> <dependency> <groupId>org.wildfly.arquillian</groupId> <artifactId>wildfly-arquillian-container-managed</artifactId> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <configuration> <forkMode>once</forkMode> <systemPropertyVariables> <arquillian.launch>incontainer</arquillian.launch> </systemPropertyVariables> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>sigtest</id> <properties> <sigtest.java-version>${java-version.main.release}</sigtest.java-version> <sigtest.signature-file>${project.build.directory}/validation-api-java${sigtest.java-version}.sig</sigtest.signature-file> </properties> <build> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>unpack</id> <phase>generate-sources</phase> <goals> <goal>unpack</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>jakarta.validation</groupId> <artifactId>jakarta.validation-api</artifactId> <version>${version.jakarta.validation-api}</version> <type>jar</type> <overWrite>false</overWrite> <outputDirectory>${project.build.directory}/validation-api</outputDirectory> <includes>**/*.class,**/*.xml</includes> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.netbeans.tools</groupId> <artifactId>sigtest-maven-plugin</artifactId> <executions> <execution> <id>sigtest-generate</id> <goals> <goal>generate</goal> </goals> <configuration> <classes>${project.build.directory}/validation-api</classes> <attach>false</attach> </configuration> </execution> <execution> <id>sigtest-check</id> <goals> <goal>check</goal> </goals> <configuration> <action>strictcheck</action> </configuration> </execution> </executions> <configuration> <packages> jakarta.validation, jakarta.validation.bootstrap, jakarta.validation.constraints, jakarta.validation.constraintvalidation, jakarta.validation.executable, jakarta.validation.groups, jakarta.validation.metadata, jakarta.validation.spi, jakarta.validation.valueextraction </packages> <sigfile>${sigtest.signature-file}</sigfile> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>testWithJdk11+</id> <activation> <property> <name>java-version.test.release</name> <value>!8</value> </property> </activation> <properties> <surefire.jvm.args.add-opens>--add-opens java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED</surefire.jvm.args.add-opens> </properties> <build> <plugins> <!-- Copy additional modules --> <plugin> <artifactId>maven-resources-plugin</artifactId> <executions> <execution> <id>copy-resources</id> <phase>generate-test-resources</phase> <goals> <goal>copy-resources</goal> </goals> <configuration> <outputDirectory>${wildfly.target-dir}/modules/system/layers/base/</outputDirectory> <resources> <resource> <directory>src/test/modules/jdk11</directory> <filtering>true</filtering> </resource> </resources> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <id>copy</id> <phase>generate-test-resources</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.openjfx</groupId> <artifactId>javafx-base</artifactId> <version>${version.org.openjfx}</version> <type>jar</type> </artifactItem> <artifactItem> <groupId>org.openjfx</groupId> <artifactId>javafx-base</artifactId> <version>${version.org.openjfx}</version> <classifier>${javafx.platform}</classifier> <type>jar</type> </artifactItem> </artifactItems> <outputDirectory>${wildfly.target-dir}/modules/system/layers/base/javafx/api/main/</outputDirectory> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <!-- Resolution of the JavaFX platform --> <profile> <id>linux</id> <activation> <os> <name>linux</name> </os> </activation> <properties> <javafx.platform>linux</javafx.platform> </properties> </profile> <profile> <id>macosx</id> <activation> <os> <name>mac os x</name> </os> </activation> <properties> <javafx.platform>mac</javafx.platform> </properties> </profile> <profile> <id>windows</id> <activation> <os> <family>windows</family> </os> </activation> <properties> <javafx.platform>win</javafx.platform> </properties> </profile> </profiles> </project>