modello:stax-writer

Full name:

org.codehaus.modello:modello-maven-plugin:1.2:stax-writer

Description:

Creates an StAX writer from the model.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Binds by default to the lifecycle phase: generate-sources.

Required Parameters

Name Type Since Description
basedir String - Base directory of the project.
models String[] - List of relative paths to mdo files containing the models.
outputDirectory File - The output directory of the generated StAX writer.
packageWithVersion boolean - True if the generated package names should include the version.
Default value is: false.
project MavenProject - The Maven project instance for the executing project.
version String - The version of the model we will be working on.

Optional Parameters

Name Type Since Description
encoding String 1.0-alpha-19 The encoding to use when generating Java source files.
Default value is: ${project.build.sourceEncoding}.
packagedVersions List - Additional historical versions to generate, each being packaged with the version regardless of the packageWithVersion setting.
useJava5 boolean - Generate Java 5 sources, with generic collections.
Default value is: false.

Parameter Details

basedir:

Base directory of the project.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${basedir}

encoding:

The encoding to use when generating Java source files.
  • Type: java.lang.String
  • Since: 1.0-alpha-19
  • Required: No
  • Expression: ${encoding}
  • Default: ${project.build.sourceEncoding}

models:

List of relative paths to mdo files containing the models.
  • Type: java.lang.String[]
  • Required: Yes

outputDirectory:

The output directory of the generated StAX writer.
  • Type: java.io.File
  • Required: Yes
  • Expression: ${basedir}/target/generated-sources/modello

packageWithVersion:

True if the generated package names should include the version.
  • Type: boolean
  • Required: Yes
  • Expression: ${packageWithVersion}
  • Default: false

packagedVersions:

Additional historical versions to generate, each being packaged with the version regardless of the packageWithVersion setting.
  • Type: java.util.List
  • Required: No

project:

The Maven project instance for the executing project.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}

useJava5:

Generate Java 5 sources, with generic collections.
  • Type: boolean
  • Required: No
  • Expression: ${useJava5}
  • Default: false

version:

The version of the model we will be working on.
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${version}