castor:mapping

Full name:

org.codehaus.mojo:castor-maven-plugin:2.1:mapping

Description:

A mojo that uses Castor MappingTool to generate mapping files from a single Class. MappingTool.

Attributes:

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

Required Parameters

Name Type Since Description
className String - The name of the Java class from which a mapping file should be generated.
mappingName String - Name of the mapping file to be generated.
project MavenProject - The Maven project to act upon.

Optional Parameters

Name Type Since Description
force boolean - Whether to force generation of mapping file where one already exists.
Default value is: false.
outputDirectory File - The output directory.
Default value is: ${project.build.outputDirectory}/.

Parameter Details

className:

The name of the Java class from which a mapping file should be generated.
  • Type: java.lang.String
  • Required: Yes

force:

Whether to force generation of mapping file where one already exists.
  • Type: boolean
  • Required: No
  • Default: false

mappingName:

Name of the mapping file to be generated.
  • Type: java.lang.String
  • Required: Yes

outputDirectory:

The output directory.
  • Type: java.io.File
  • Required: No
  • Default: ${project.build.outputDirectory}/

project:

The Maven project to act upon.
  • Type: org.apache.maven.project.MavenProject
  • Required: Yes
  • Expression: ${project}