jaxb2:xjc

A Maven 2 plugin which parse xsd and binding files (xjb) and produces a corresponding object model based on the JAXB Xjc parsing engine.

Parameters for the goal:

Parameter Type Expression Default Value Description
arguments (Optional) String ${xjc.arguments} - Space separated string of extra arguments, for instance -Xfluent-api -episode somefile; These will be passed on to XJC as "-Xfluent-api" "-episode" "somefile" options.
bindingDirectory (Optional) File ${basedir}/src/main/xjb - The binding directory for xjb files
bindingFiles (Optional) String - - List of files to use for bindings, comma delimited. If none, then all xjb files are used in the bindingDirectory
catalog (Optional) File - - Catalog file to resolve external entity references support TR9401, XCatalog, and OASIS XML Catalog format.
clearOutputDir (Optional) boolean - true Clears the output directory on each run. Defaults to 'true' but if false, will not clear the directory.
dtd (Optional) boolean - false Treat input schemas as XML DTD (experimental, unsupported).
explicitAnnotation (Optional) boolean - false Allow generation of explicit annotations that are needed for JAXB2 to work on RetroTranslator.
extension (Optional) boolean - false Allow to use the JAXB Vendor Extensions.
generatedResourcesDirectory (Optional) File - - The optional directory where generated resources can be placed, generated by addons/plugins.
httpproxy (Optional) String - - Set HTTP/HTTPS proxy. Format is [user[:password]@]proxyHost[:proxyPort]
includeSchemasOutputPath (Optional) String - - The output path to include in your jar/war/etc if you wish to include your schemas in your artifact.
npa (Optional) boolean - false Suppress generation of package level annotations (package-info.java)
nv (Optional) boolean - false Do not perform strict validation of the input schema(s)
outputDirectory File ${project.build.directory}/generated-sources/jaxb - The working directory to create the generated java source files.
packageName (Optional) String - - The package in which the source files will be generated.
project MavenProject ${project} - The default maven project object
quiet (Optional) boolean - false Suppress compiler output
readOnly (Optional) boolean - false Generated files will be in read-only mode
relaxng (Optional) boolean - false Treat input schemas as RELAX NG (experimental, unsupported).
relaxngCompact (Optional) boolean - false Treat input as RELAX NG compact syntax (experimental,unsupported)
schemaDirectory File ${basedir}/src/main/xsd - The schema directory or xsd files
schemaFiles (Optional) String - - List of files to use for schemas, comma delimited. If none, then all xsd files are used in the schemaDirectory Note: you may use either the 'schemaFiles' or 'schemaListFileName' option (you may use both at once)
schemaListFileName (Optional) String - - A filename containing the list of files to use for schemas, comma delimited. If none, then all xsd files are used in the schemaDirectory. Note: you may use either the 'schemaFiles' or 'schemaListFileName' option (you may use both at once)
staleFile File - ${project.build.directory}/generated-sources/jaxb/.staleFlag The location of the flag file used to determine if the output is stale.
verbose (Optional) boolean - false Be extra verbose
wsdl (Optional) boolean - false Treat input as WSDL and compile schemas inside it (experimental,unsupported)
xmlschema (Optional) boolean - true Treat input as W3C XML Schema (default)