Runs RevGen database-to-Java code generator.
Parameters for the goal:
| Parameter | Type | Expression | Default Value | Description |
|---|---|---|---|---|
configFile (Optional) |
String
|
${revgen.configFile}
|
classpath:RevGenSpringConfig.xml
|
By default this file is loaded from the revgen.jar. To take full control of RevGen you can manage local copy by setting it to: file:src/revgen/RevGenSpringConfig.xml. |
project
|
MavenProject
|
-
|
${project}
|
Project instance, used to add new source directory to the build. |
properties (Optional) |
Map
|
-
|
-
|
This field allows embedding properties in Maven configuration. |
propertyFile (Optional) |
String
|
${revgen.propertyFile}
|
-
|
Optional properties configuration file overrides properties defined in RevGenSpringConfig.xml. |
removeDuplicates (Optional) |
boolean
|
${revgen.removeDuplicates}
|
false
|
Remove duplicate files, allowing any generated file to be modified simply by copying it from the generated directory to the hand-coded directory. |
resourceDirectory (Optional) |
String
|
${revgen.resourceDirectory}
|
-
|
If specified, adds a separate directory to the resource list. |
skip (Optional) |
boolean
|
${revgen.skip}
|
false
|
Skip the code generation cycle? Usage: mvn -Drevgen.skip=true |
sourceDirectory (Optional) |
String
|
${revgen.sourceDirectory}
|
-
|
If specified, adds a separate directory to the source list. |
testSourceDirectory (Optional) |
String
|
${revgen.testSourceDirectory}
|
-
|
If specified, adds a separate directory to the test source list. |
timestampFile (Optional) |
String
|
${revgen.timestampFile}
|
target/revgen-timestamp.txt
|
If specified, will suppress code generation on subsequent generation cycles until deleted. If placed in the target directory, the clean command will always trigger fresh generation |