This plugin is to use ddlutils of Apache DB Project in Maven2 .
Current version can only output ddl file from xml ddl schema to specified directory.
Use this plugin, we add following tags into pom.xml, and run mvn command.
<plugins> : <plugin> <groupId>jp.sourceforge.talisman</groupId> <artifactId>maven-ddlutils-plugin</artifactId> <version>1.0.0</version> <configuration> <platformType>derby</platformType> <files> <file>src/main/schema/database.xml</file> </files> </configuration> <executions> <execution> <id>build-ddls</id> <phase>package</phase> <goals> <goal>build-ddl</goal> </goals> </execution> </executions> </plugin> : </plugins>
Property Name | Default Value | Required | Type | Description |
platformType | N/A | Yes | String | platform type of database |
file | N/A | Yes | String | input xml file |
outputDirectory | ${project.build.directory}/schema | No | String | output directory for ddl. |
dropTableFirst | true | No | boolean | If true, schema contains drop instruction before create table. |