xjc [-options ...] schema
The xjc command line options are as follows:
Do not perform strict validation of the input schema or schemas.
By default, xjc performs strict validation of the source
schema before processing. Note that this does not mean the binding compiler
will not perform any validation; it simply means that it will perform less-strict
validation.
-extension
By default, the XJC binding compiler strictly enforces the
rules outlined in the Compatibility chapter of the JAXB Specification. In
the default (strict) mode, you are also limited to using only the binding
customizations defined in the specification. By using the -extension switch,
you will be allowed to use the JAXB Vendor Extensions.
-b file
Specify one or more external binding files to process. (Each
binding file must have its own -b switch.) The syntax of the
external binding files is extremely flexible. You may have a single binding
file that contains customizations for multiple schemas or you can break the
customizations into multiple bindings files. In addition, the ordering of
the schema files and binding files on the command line does not matter.
-d dir
By default, xjc will generate Java content
classes in the current directory. Use this option to specify an alternate
output directory. The directory must already exist; xjc will
not create it for you.
-p package
Specify an alternate output directory. By default, the XJC
binding compiler will generate the Java content classes in the current directory.
The output directory must already exist; the XJC binding compiler will not
create it for you.
-proxy proxy
Specify the HTTP/HTTPS proxy. The format is [user[:password]@]proxyHost[:proxyPort]. The old -host and -port options are still supported by the Reference Implementation for
backwards compatibility, but they have been deprecated.
-classpath arg
Specify where to find client application class files used
by the <jxb:javaType> and <xjc:superClass> customizations.
-catalog file
Specify catalog files to resolve external entity references.
Supports TR9401, XCatalog, and OASIS XML Catalog format. For more information,
see the XML Entity and URI Resolvers document or examine the catalog-resolver
sample application.
-readOnly
Force the XJC binding compiler to mark the generated Java
sources read-only. By default, the XJC binding compiler does not write-protect
the Java source files it generates.
Suppress the generation of package level annotations into **/package-info.java. Using this switch causes the generated code
to internalize those annotations into the other generated classes.
-xmlschema
Treat input schemas as W3C XML Schema (default). If you do
not specify this switch, your input schemas will be treated as W3C XML Schema.
-quiet
Suppress compiler output, such as progress information and
warnings.
-help
Display a brief summary of the compiler switches.
-version
Display the compiler version information.
-Xlocator
Enable source location support for generated code.
-Xsync-methods
Generate accessor methods with the synchronized keyword.
-mark-generated
Mark the generated code with the [email protected] annotation.