Skip to content

Commit 525409a

Browse files
committed
HV-1459 Add a sigtest profile to make running the sigtest test easier
1 parent bb8b259 commit 525409a

File tree

3 files changed

+59
-1
lines changed

3 files changed

+59
-1
lines changed

engine/pom.xml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,5 +386,57 @@
386386
</plugins>
387387
</build>
388388
</profile>
389+
<profile>
390+
<id>sigtest</id>
391+
<build>
392+
<plugins>
393+
<plugin>
394+
<groupId>org.apache.maven.plugins</groupId>
395+
<artifactId>maven-dependency-plugin</artifactId>
396+
<executions>
397+
<execution>
398+
<id>copy-tck-bv-api-signature-file</id>
399+
<phase>generate-test-sources</phase>
400+
<goals>
401+
<goal>unpack</goal>
402+
</goals>
403+
<configuration>
404+
<artifactItems>
405+
<artifactItem>
406+
<groupId>org.hibernate.beanvalidation.tck</groupId>
407+
<artifactId>beanvalidation-tck-tests</artifactId>
408+
<version>${tck.version}</version>
409+
<type>jar</type>
410+
<overWrite>true</overWrite>
411+
</artifactItem>
412+
</artifactItems>
413+
<!-- We just need the signature file and nothing else -->
414+
<includes>**/*.sig</includes>
415+
<outputDirectory>${project.build.directory}/api-signature</outputDirectory>
416+
</configuration>
417+
</execution>
418+
</executions>
419+
</plugin>
420+
<plugin>
421+
<groupId>org.netbeans.tools</groupId>
422+
<artifactId>sigtest-maven-plugin</artifactId>
423+
<executions>
424+
<execution>
425+
<goals>
426+
<goal>check</goal>
427+
</goals>
428+
</execution>
429+
</executions>
430+
<configuration>
431+
<packages>javax.validation,javax.validation.bootstrap,javax.validation.constraints,
432+
javax.validation.constraintvalidation,javax.validation.executable,javax.validation.groups,
433+
javax.validation.metadata,javax.validation.spi,javax.validation.valueextraction
434+
</packages>
435+
<sigfile>${project.build.directory}/api-signature/validation-api-java8.sig</sigfile>
436+
</configuration>
437+
</plugin>
438+
</plugins>
439+
</build>
440+
</profile>
389441
</profiles>
390442
</project>

pom.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@
100100
<maven.javadoc.skip>true</maven.javadoc.skip>
101101

102102
<bv.api.version>2.0.0.Final</bv.api.version>
103+
<tck.version>2.0.0.Final</tck.version>
104+
103105
<!-- Version to be used as baseline for API/SPI change reports -->
104106
<previous.stable>5.4.1.Final</previous.stable>
105107

@@ -892,6 +894,11 @@
892894
</dependency>
893895
</dependencies>
894896
</plugin>
897+
<plugin>
898+
<groupId>org.netbeans.tools</groupId>
899+
<artifactId>sigtest-maven-plugin</artifactId>
900+
<version>1.0</version>
901+
</plugin>
895902
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
896903
<plugin>
897904
<groupId>org.eclipse.m2e</groupId>

tck-runner/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
<description>Aggregates dependencies and runs the JSR-380 TCK</description>
2222

2323
<properties>
24-
<tck.version>2.0.0.Final</tck.version>
2524
<tck.suite.file>${project.build.directory}/dependency/beanvalidation-tck-tests-suite.xml</tck.suite.file>
2625
<wildfly.target-dir>${project.build.directory}/wildfly-${wildfly.version}</wildfly.target-dir>
2726
<validation.provider>org.hibernate.validator.HibernateValidator</validation.provider>

0 commit comments

Comments
 (0)