jaxb-schemagen:generate

A mojo that generates XML schema from Java files. For details on JAXB see JAXB 2.0 Project

Mojo Attributes:

  • Requires a Maven 2.0 project to execute.
  • Requires dependency resolution of artifacts in scope: runtime
  • Automatically executes within the lifecycle phase: generate-sources

Required Parameters

Name Type Description
project MavenProject The Maven project reference.

Optional Parameters

Name Type Description
destdir File Generated schema files will be written under this directory.
excludes String[] A list of regular expression file search patterns to specify the Java files to be excluded from the include list. Searching is based from the root of srcdir.
includes String[] A list of regular expression file search patterns to specify the Java files to be processed. Searching is based from the root of srcdir. If this is not set then all .java files in srcdir will be processed.
schemas Schema[] Control the file name of the generated schema. Elements namespace and file are mandatory. some.name schemafilename.xsd
srcdir File The source directory containing java files.
verbose boolean If verbose all the configured settings that are to be passed to schemagen are logged.

Parameter Details

destdir

Generated schema files will be written under this directory.

  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/generated-schema

excludes A list of regular expression file search patterns to specify the Java files to be excluded from the include list. Searching is based from the root of srcdir.
  • Type: java.lang.String[]
  • Required: No

includes A list of regular expression file search patterns to specify the Java files to be processed. Searching is based from the root of srcdir. If this is not set then all .java files in srcdir will be processed.
  • Type: java.lang.String[]
  • Required: No

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

schemas Control the file name of the generated schema. Elements namespace and file are mandatory. some.name schemafilename.xsd
  • Type: com.sun.tools.jxc.maven2.Schema[]
  • Required: No

srcdir The source directory containing java files.
  • Type: java.io.File
  • Required: No
  • Expression: ${project.build.directory}/../src/main

verbose If verbose all the configured settings that are to be passed to schemagen are logged.
  • Type: boolean
  • Required: No
  • Expression: false

Terms of Use; Privacy Policy; Copyright ©2013-2014 (revision 20140418.2d69abc)
 
 
Close
loading
Please Confirm
Close