|
47 | 47 | <groupId>net.revelc.code.formatter</groupId>
|
48 | 48 | <artifactId>formatter-maven-plugin</artifactId>
|
49 | 49 | </plugin>
|
| 50 | + <plugin> |
| 51 | + <artifactId>maven-dependency-plugin</artifactId> |
| 52 | + <executions> |
| 53 | + <execution> |
| 54 | + <id>unpack-wildfly-patching-script</id> |
| 55 | + <phase>generate-sources</phase> |
| 56 | + <goals> |
| 57 | + <goal>unpack</goal> |
| 58 | + </goals> |
| 59 | + <configuration> |
| 60 | + <skip>${skip.wildfly.patch.hibernate.validator}</skip> |
| 61 | + <artifactItems> |
| 62 | + <artifactItem> |
| 63 | + <groupId>${project.groupId}</groupId> |
| 64 | + <artifactId>hibernate-validator-build-config</artifactId> |
| 65 | + <version>${project.version}</version> |
| 66 | + <type>jar</type> |
| 67 | + <outputDirectory>${project.build.directory}/hibernate-validator-patch</outputDirectory> |
| 68 | + </artifactItem> |
| 69 | + </artifactItems> |
| 70 | + </configuration> |
| 71 | + </execution> |
| 72 | + <execution> |
| 73 | + <id>unpack-wildfly</id> |
| 74 | + <phase>generate-sources</phase> |
| 75 | + <goals> |
| 76 | + <goal>unpack</goal> |
| 77 | + </goals> |
| 78 | + <configuration> |
| 79 | + <skip>${skip.wildfly.patch.unpack.server}</skip> |
| 80 | + <artifactItems> |
| 81 | + <artifactItem> |
| 82 | + <groupId>org.wildfly</groupId> |
| 83 | + <artifactId>${wildfly.distribution.name}-dist</artifactId> |
| 84 | + <version>${version.wildfly}</version> |
| 85 | + <type>tar.gz</type> |
| 86 | + <overWrite>false</overWrite> |
| 87 | + <outputDirectory>${project.build.directory}/wildfly-patched</outputDirectory> |
| 88 | + </artifactItem> |
| 89 | + </artifactItems> |
| 90 | + </configuration> |
| 91 | + </execution> |
| 92 | + <!-- Update the BV/HV JARs in the unpacked ^ WF copy --> |
| 93 | + <execution> |
| 94 | + <id>prepare-patch-jars</id> |
| 95 | + <phase>generate-resources</phase> |
| 96 | + <goals> |
| 97 | + <goal>copy</goal> |
| 98 | + </goals> |
| 99 | + <configuration> |
| 100 | + <skip>${skip.wildfly.patch.hibernate.validator}</skip> |
| 101 | + <artifactItems> |
| 102 | + <!-- WildFly current --> |
| 103 | + <artifactItem> |
| 104 | + <groupId>jakarta.validation</groupId> |
| 105 | + <artifactId>jakarta.validation-api</artifactId> |
| 106 | + <version>${version.jakarta.validation-api}</version> |
| 107 | + <overWrite>false</overWrite> |
| 108 | + <outputDirectory>${wildfly.actual.target-dir}/modules/system/layers/base/jakarta/validation/api/main</outputDirectory> |
| 109 | + <!-- Specifying name to avoid timestamp in version on CI --> |
| 110 | + <destFileName>jakarta.validation-api-${version.jakarta.validation-api}.jar</destFileName> |
| 111 | + </artifactItem> |
| 112 | + <artifactItem> |
| 113 | + <groupId>${project.groupId}</groupId> |
| 114 | + <artifactId>hibernate-validator</artifactId> |
| 115 | + <version>${project.version}</version> |
| 116 | + <overWrite>false</overWrite> |
| 117 | + <outputDirectory>${wildfly.actual.target-dir}/modules/system/layers/base/org/hibernate/validator/main</outputDirectory> |
| 118 | + <destFileName>hibernate-validator-${project.version}.jar</destFileName> |
| 119 | + </artifactItem> |
| 120 | + <artifactItem> |
| 121 | + <groupId>${project.groupId}</groupId> |
| 122 | + <artifactId>hibernate-validator-cdi</artifactId> |
| 123 | + <version>${project.version}</version> |
| 124 | + <overWrite>false</overWrite> |
| 125 | + <outputDirectory>${wildfly.actual.target-dir}/modules/system/layers/base/org/hibernate/validator/cdi/main</outputDirectory> |
| 126 | + <destFileName>hibernate-validator-cdi-${project.version}.jar</destFileName> |
| 127 | + </artifactItem> |
| 128 | + <!-- We also need to patch the jboss logging jar --> |
| 129 | + <artifactItem> |
| 130 | + <groupId>org.jboss.logging</groupId> |
| 131 | + <artifactId>jboss-logging</artifactId> |
| 132 | + <version>${version.org.jboss.logging.jboss-logging}</version> |
| 133 | + <overWrite>false</overWrite> |
| 134 | + <outputDirectory>${wildfly.actual.target-dir}/modules/system/layers/base/org/jboss/logging/main</outputDirectory> |
| 135 | + <destFileName>jboss-logging-${version.org.jboss.logging.jboss-logging}.jar</destFileName> |
| 136 | + </artifactItem> |
| 137 | + </artifactItems> |
| 138 | + </configuration> |
| 139 | + </execution> |
| 140 | + </executions> |
| 141 | + </plugin> |
50 | 142 | </plugins>
|
51 | 143 | </build>
|
52 | 144 | </project>
|
0 commit comments