Improve XML schema validation (#18608)

* Move validation to subprojects, skip on top level to avoid double
  execution using a marker file (regression, #18579)

Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
Holger Friedrich
2025-04-26 10:50:08 +02:00
committed by GitHub
parent 04c4085c1b
commit 8ecbbbf29d
3 changed files with 43 additions and 24 deletions
-24
View File
@@ -641,30 +641,6 @@ Import-Package: \\
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>xml-maven-plugin</artifactId>
<version>1.1.0</version>
<configuration>
<validationSets>
<validationSet>
<dir>${session.executionRootDirectory}</dir>
<includes>**/src/main/resources/OH-INF/thing/*.xml</includes>
<systemId>https://openhab.org/schemas/thing-description-1.0.0.xsd</systemId>
</validationSet>
</validationSets>
<catalogs>
<catalog>${basedirRoot}/src/thing-type-xml-validation-catalog.xml</catalog>
</catalogs>
</configuration>
<executions>
<execution>
<goals>
<goal>validate</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<extensions>
<extension>