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<java.math.BigDecimal></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>
Releases & Development Snapshots
Releases
You can subscribe to the atom feed to be notified of project releases.
The most recently released version of the package is 2.0.0.
2.0.0 Release (2024-05-12Z)
The compiled artifacts for the release (and all previous releases) are available on Maven Central.
Development Snapshots
At the time of writing, the current unstable development version of the package is 2.0.1-SNAPSHOT.
Development snapshots may be available in the Central Portal Snapshots repository. Snapshots are published to this repository every time the project is built by the project's continuous integration system, but snapshots do expire after around ninety days and so may or may not be available depending on when a build of the package was last triggered.
Manual
This project does not have any user manuals or other documentation beyond what might be present on the page above.
Sources
This project uses Git to manage source code.
Repository: https://www.github.com/io7m-com/string-template-maven-plugin
$ git clone --recursive https://www.github.com/io7m-com/string-template-maven-plugin
Issues
This project uses GitHub Issues to track issues.
License
Copyright (c) 2011-2013 Kevin Birch <kmb@pobox.com>. All rights reserved. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.