Plugin Documentation

Goals available for this plugin:

Goal Description
serializer-generator:commit Commits the created classes and resources to the source directories
serializer-generator:diff Shows a diff between the generated sources and the regular classes.
serializer-generator:generate Generate a Serializer and the corresponding unit tests.

All files are generated within target/generated-sources. So no source files are overwritten by this goal.

serializer-generator:help Display help information on serializer-generator-maven-plugin.
Call
  mvn serializer-generator:help -Ddetail=true -Dgoal=<goal-name>
to display parameter details.

System Requirements

The following specifies the minimum requirements to run this Maven plugin:

Maven 2.1.0
JDK 1.6
Memory No minimum requirement.
Disk Space No minimum requirement.

Usage

You should specify the version in your project's plugin configuration:

<project>
  ...
  <build>
    <!-- To define the plugin version in your parent POM -->
    <pluginManagement>
      <plugins>
        <plugin>
          <groupId>com.cedarsoft.serialization.generator</groupId>
          <artifactId>serializer-generator-maven-plugin</artifactId>
          <version>5.0.0-SNAPSHOT</version>
        </plugin>
        ...
      </plugins>
    </pluginManagement>
    <!-- To use the plugin goals in your POM or parent POM -->
    <plugins>
      <plugin>
        <groupId>com.cedarsoft.serialization.generator</groupId>
        <artifactId>serializer-generator-maven-plugin</artifactId>
        <version>5.0.0-SNAPSHOT</version>
      </plugin>
      ...
    </plugins>
  </build>
  ...
</project>

For more information, see "Guide to Configuring Plug-ins"