appfuse:gen

Full name:

org.codehaus.mojo:appfuse-maven-plugin:2.1-SNAPSHOT:gen

Description:

Generates Java classes from set of annotated POJOs. Use -DdisableInstallation to prevent installation. If using this goal in a "core" module or project, only DAOs and Managers will be created. For "web" modules, the same principle applies.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Requires dependency resolution of artifacts in scope: test.
  • Binds by default to the lifecycle phase: generate-sources.
  • Invokes the execution of the lifecycle phase compile prior to executing itself.

Optional Parameters

Name Type Since Description
componentProperties Map - Parameter that holds component properties defined by the user.
components List - Parameter that holds components definitions specified by the user.
destinationDirectory String - The path where the generated artifacts will be placed. This is intentionally not set to the default location for maven generated sources. This is to keep these files out of the eclipse/idea generated sources directory as the intention is that these files will be copied to a source directory to be edited and modified and not re generated each time the plugin is run. If you want to regenerate the files each time you build the project just set this value to ${basedir}/target/generated-sources or set the flag on eclipse/idea plugin to include this file in your project file as a source directory. Default value is: ${basedir}.
disableInstallation boolean - Allows disabling installation - for tests and end users that don't want to do a full installation Default value is: false.
fullSource boolean - (no description) Default value is: false.
genericCore boolean - (no description) Default value is: true.
sourceDirectory String - The directory containing the source code. Default value is: ${basedir}/target/appfuse/generated-sources.
templateDirectory String - (no description) Default value is: ${basedir}/src/test/resources.

Parameter Details

componentProperties :

Parameter that holds component properties defined by the user.

  • Type: java.util.Map
  • Required: No

components :

Parameter that holds components definitions specified by the user.

  • Type: java.util.List
  • Required: No

destinationDirectory :

The path where the generated artifacts will be placed. This is intentionally not set to the default location for maven generated sources. This is to keep these files out of the eclipse/idea generated sources directory as the intention is that these files will be copied to a source directory to be edited and modified and not re generated each time the plugin is run. If you want to regenerate the files each time you build the project just set this value to ${basedir}/target/generated-sources or set the flag on eclipse/idea plugin to include this file in your project file as a source directory.

  • Type: java.lang.String
  • Required: No
  • Expression: ${appfuse.destinationDirectory}
  • Default: ${basedir}

disableInstallation :

Allows disabling installation - for tests and end users that don't want to do a full installation

  • Type: boolean
  • Required: No
  • Expression: ${appfuse.disableInstallation}
  • Default: false

fullSource :

(no description)

  • Type: boolean
  • Required: No
  • Expression: ${appfuse.fullSource}
  • Default: false

genericCore :

(no description)

  • Type: boolean
  • Required: No
  • Expression: ${appfuse.genericCore}
  • Default: true

sourceDirectory :

The directory containing the source code.

  • Type: java.lang.String
  • Required: No
  • Expression: ${appfuse.sourceDirectory}
  • Default: ${basedir}/target/appfuse/generated-sources

templateDirectory :

(no description)

  • Type: java.lang.String
  • Required: No
  • Expression: ${appfuse.templateDirectory}
  • Default: ${basedir}/src/test/resources