This Plugin simplifies FuncGen code generation in the Maven 2 build environment.
To add this plugin to your Maven 2 build process, add the following to the <build><plugins> section of your pom.xml file:
<plugin>
<groupId>org.javagen.funcgen</groupId>
<artifactId>maven-funcgen-plugin</artifactId>
<version>1.0</version>
<configuration>
<propertyFile>file:src/funcgen/funcgen.properties</propertyFile>
</configuration>
<dependencies>
<dependency>
<groupId>hsqldb</groupId>
<artifactId>hsqldb</artifactId>
</dependency>
</dependencies>
</plugin>To make your JDBC driver class visible to this plugin, include it as a plugin dependency as shown above.
FuncGen configuration is largely handled by two files:
Use funcgen.properties for simple configuration. If you need more control, point your configuration at a local copy of FuncGenSpringConfig.xml (note the file:src/funcgen/ path):
<configuration>
<configFile>file:src/funcgen/FuncGenSpringConfig.xml</configFile>
</configuration>You can also override default properties within the plugin configuration section as follows:
<configuration>
<properties implementation="java.util.Properties">
<srcDir>src/main/java</srcDir>
<testDir>src/test/java</testDir>
</properties>
</configuration>As configured above the plugin will be invoked in the integration-test phase of the build lifecycle, so you don't need to do anything special to invoke FuncGen.
To run stand-alone (using the form: codegroupID:artifactID:version:goal/code), type:
mvn org.javagen.funcgen:maven-funcgen-plugin:1.0:funcgen