Checking, whether XML files are well formed
The following configuration snippet would check, whether all files in the directory src/main/xml
are well formed:
<build> <plugins> ... <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>xml-maven-plugin</artifactId> <executions> <execution> <goals> <goal>validate</goal> </goals> </execution> </executions> <configuration> <validationSets> <validationSet> <dir>src/main/xml</dir> </validationSet> </validationSets> </configuration> </plugin> ... </plugins> </build>