Transform a set of .xml files, each file 1:1

The many-to-many mojo performs XSL transformation of a set of source files with destination files created as follows:

  • Each source file is transformed into a single destination file, preserving the directory structure. The destination directory tree is created based on the source directory tree.
  • Files with up-to-date timestamp are skipped.
<project>
  ...
  <build>
    <plugins>
      <plugin>
        <groupId>net.sf.xsltmp</groupId>
        <artifactId>xslt-generator-maven-plugin</artifactId>
        <version>1.8</version>
        <executions>
          <execution>
            <id>transform-abc</id>
            <goals>
              <goal>many-to-many</goal>
            </goals>
            <configuration>
              <xslTemplate>path/to/template.xsl</xslTemplate>
              <srcDir>src/main/xml</srcDir>
              <srcIncludes>**/*-abc.xml</srcIncludes>
            </configuration>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>
</project>