This is an automated email from the ASF dual-hosted git repository. pzampino pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/knox.git
The following commit(s) were added to refs/heads/master by this push: new adfdc3046 KNOX-3177: gateway-service-definitions build time XML validation (#1072) adfdc3046 is described below commit adfdc30464affa251410f722f94565a8113c9c2d Author: hanicz <han...@users.noreply.github.com> AuthorDate: Tue Aug 5 19:03:07 2025 +0200 KNOX-3177: gateway-service-definitions build time XML validation (#1072) --- gateway-service-definitions/pom.xml | 8 ++++++++ pom.xml | 24 ++++++++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/gateway-service-definitions/pom.xml b/gateway-service-definitions/pom.xml index f84dab774..97dd2934f 100644 --- a/gateway-service-definitions/pom.xml +++ b/gateway-service-definitions/pom.xml @@ -69,4 +69,12 @@ <scope>test</scope> </dependency> </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xml-maven-plugin</artifactId> + </plugin> + </plugins> + </build> </project> diff --git a/pom.xml b/pom.xml index ba153d4bc..cbd397b1a 100644 --- a/pom.xml +++ b/pom.xml @@ -299,6 +299,7 @@ <docker-maven-plugin.version>0.45.0</docker-maven-plugin.version> <docker.platforms>linux/amd64,linux/arm64</docker.platforms> <snakeyaml.version>2.4</snakeyaml.version> + <xml-maven-plugin.version>1.1.0</xml-maven-plugin.version> </properties> <repositories> <repository> @@ -440,6 +441,29 @@ </execution> </executions> </plugin> + <plugin> + <groupId>org.codehaus.mojo</groupId> + <artifactId>xml-maven-plugin</artifactId> + <version>${xml-maven-plugin.version}</version> + <executions> + <execution> + <phase>verify</phase> + <goals> + <goal>validate</goal> + </goals> + </execution> + </executions> + <configuration> + <validationSets> + <validationSet> + <dir>src/main/resources/services</dir> + <includes> + <include>**/*.xml</include> + </includes> + </validationSet> + </validationSets> + </configuration> + </plugin> </plugins> </pluginManagement> <plugins>