Watch
2
0
Fork
You've already forked string-template-maven-plugin
0
Execute StringTemplate files during your Maven build.
  • Java 98.8%
  • CSS 1.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Mark Raynsford 2460fd9f00
Some checks are pending
main-RHEL10-x86_64-jdk25 / Build (push) Waiting to run
main-RHEL10-x86_64-jdk26 / Build (push) Waiting to run
main-RHEL9-x86_64-jdk25 / Build (push) Waiting to run
main-RHEL9-x86_64-jdk26 / Build (push) Waiting to run
Update workflows.
2026-07-31 18:43:00 +01:00
.forgejo Update workflows. 2026-07-31 18:43:00 +01:00
src Update site metadata. 2025-08-09 15:06:07 +00:00
.gitignore Aggressively modernize. Use primogenitor, and latest versions of everything. 2021-01-01 13:23:02 +00:00
.gitmodules Initial move to new organization. 2024-05-12 14:57:46 +00:00
doc7m-books.json Add doc7m-books.json 2026-07-31 18:36:50 +01:00
pom.xml Migrate project. 2026-06-27 11:12:19 +01:00
README-CHANGES.xml Mark release 2.0.0 2024-05-12 16:42:58 +00:00
README-LICENSE.txt Initial move to new organization. 2024-05-12 14:57:46 +00:00
README.in Migrate project. 2026-06-27 11:12:19 +01:00
README.md Migrate project. 2026-06-27 11:12:19 +01:00

string-template-maven-plugin

Maven Central Maven Central (snapshot) Java Version

string-template-maven-plugin

string-template-maven-plugin

The string-template-maven-plugin package provides a plugin to execute StringTemplate templates during a build.

Usage

An example of generating a PAreasBDTest.java file from a template named PAreasTest in src/main/string-template/PAreasTest.st:

<build>
  <plugins>
...

<plugin>
  <groupId>com.io7m.stmp</groupId>
  <artifactId>string-template-maven-plugin</artifactId>
  <executions>
    <execution>
      <id>generate-area-P-BD</id>
      <phase>generate-sources</phase>
      <goals>
        <goal>renderTemplate</goal>
      </goals>
      <configuration>
        <template>
          <name>PAreasTest</name>
          <inputFile>
            ${project.basedir}/src/main/string-template/PAreasTest.st
          </inputFile>
          <outputFile>
            ${project.build.directory}/generated-sources/string-template/com/io7m/jregions/tests/core/parameterized/PAreasBDTest.java
          </outputFile>
          <properties>
            <scalarType>java.math.BigDecimal</scalarType>
            <scalarGeneratorType>Generator&lt;java.math.BigDecimal&gt;</scalarGeneratorType>
            <areaType>com.io7m.jregions.core.parameterized.areas.PAreaBD</areaType>
            <areaSizeType>com.io7m.jregions.core.parameterized.sizes.PAreaSizeBD</areaSizeType>
            <areaOpsType>com.io7m.jregions.core.parameterized.areas.PAreasBD</areaOpsType>
            <className>PAreasBDTest</className>
            <splitXType>com.io7m.jregions.core.parameterized.areas.PAreaXSplitBD</splitXType>
            <splitYType>com.io7m.jregions.core.parameterized.areas.PAreaYSplitBD</splitYType>
            <splitXYType>com.io7m.jregions.core.parameterized.areas.PAreaXYSplitBD</splitXYType>
            <opClass>PAreasBDTestOps</opClass>
          </properties>
        </template>
      </configuration>
    </execution>
  </executions>
</plugin>

...
  </plugins>
</build>