Maven JAXB Plugin Settings

Property nameOptional?Description
maven.jaxb.src.dirYes Sets the directory for the XML schemas. Default value is ${maven.src.dir}/jaxb.
maven.jaxb.packageNo Sets the package property for the JAXB source generator.
maven.jaxb.extensionYes Sets the extension property for the JAXB source generator. Default value is false.
maven.jaxb.build.dirYes Sets the output directory for the Java sources genereated based on the XML schemas. Default value is ${maven.build.dir}/jaxb.
maven.jaxb.schemas.includesYes Sets the XML schemas to include. Paths are relative to maven.jaxb.src.dir. Default value is **/*.xsd.
maven.jaxb.schemas.excludesYes Sets the XML schemas to exclude. Paths are relative to maven.jaxb.src.dir. Default value is empty.
maven.jaxb.bindings.includesYes Sets the XML bindings to include. Paths are relative to maven.jaxb.src.dir. Default value is **/*.xjb.
maven.jaxb.bindings.excludesYes Sets the XML bindings to exclude. Paths are relative to maven.jaxb.src.dir. Default value is empty.

Other properties used

Property nameOptional?Description
maven.build.dirYes This is the directory that output files are generated to. The JAXB generated code is placed in the JAXB directory below this.
maven.compile.src.setYes The source directories maven uses to compile java code. The JAXB plugin adds the directory it generates code to this path, so that generated code is compiled seamlessly.