Details
-
New Feature
-
Resolution: Fixed
-
Major
-
5.2.4
-
None
Description
I am trying to format the generated sources for a xar module (because I use xwiki-platform-tool-xmldoc-update-plugin and it messes up a bit my document) and I have the following piece of configuration:
<plugin> <groupId>org.xwiki.commons</groupId> <artifactId>xwiki-commons-tool-xar-plugin</artifactId> <version>${platform.version}</version> <executions> <execution> <phase>process-resources</phase> <id>xarformat</id> <goals> <goal>format</goal> </goals> <configuration> <includes> <include> ${project.build.directory}/classes/**/*.xml </include> </includes> </configuration> </execution> </executions> </plugin>
However, this does not work. I digged a bit and found out that it's because both format and verify use org.xwiki.tool.xar.AbstractVerifyMojo.getXARXMLFiles() and never the org.xwiki.tool.xar.AbstractXARMojo.getIncludes() which is used when packaging.