-
Notifications
You must be signed in to change notification settings - Fork 99
Configuration Cheat Sheet
Steffen Hohn edited this page Nov 29, 2018
·
13 revisions
Work in progress
<schemaDirectory>src/main/resources</schemaDirectory>
<schemaIncludes>
<include>*.xsd</include>
</schemaIncludes>
<!-- By default, nothing is excluded. -->
<schemaExcludes>
<include>*.xs</include>
</schemaExcludes>
<schemas>
<schema>
<!-- Specifies a schema from the Maven artifact. -->
<dependencyResource>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin-tests-po</artifactId>
<!-- Version of the artifact. May be omitted.
The plugin will then try to find the version using
the dependencyManagement and dependencies of the project. -->
<version>${project.version}</version>
<!-- Path of the resource within the artifact. -->
<resource>purchaseorder.xsd</resource>
</dependencyResource>
</schema>
<schema>
<url>http://schemas.opengis.net/wms/1.3.0/exceptions_1_3_0.xsd</url>
</schema>
<schema>
<!-- Specifies a schema in the Maven artifact. -->
<url>maven:org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-tests-po!/po.xsd</url>
</schema>
<schema>
<fileset>
<!-- Defaults to schemaDirectory. -->
<directory>${basedir}/src/main/schemas</directory>
<!-- Defaults to schemaIncludes. -->
<includes>
<include>*.xsd</include>
</includes>
<!-- Defaults to schemaIncludes -->
<excludes>
<exclude>*.xs</exclude>
</excludes>
</fileset>
</schema>
</schemas>
<!-- DTD, XMLSCHEMA, RELAXNG, RELAXNG_COMPACT, WSDL, AUTODETECT. -->
<schemaLanguage>AUTODETECT</schemaLanguage>
<!-- Default to the schemaDirectory -->
<bindingDirectory>src/main/resources</bindingDirectory>
<bindingIncludes>
<include>**/*.xjb</include>
</bindingIncludes>
<!-- By default, nothing is excluded. -->
<bindingExcludes>
<include>**/*.xjb</include>
</bindingExcludes>
<bindings>
<binding>
<dependencyResource>...</dependencyResource>
</binding>
<binding>
<url>...</url>
</binding>
<binding>
<fileset>
<!-- Defaults to bindingDirectory. -->
<directory>${basedir}/src/main/bindings</directory>
<!-- Defaults to bindingIncludes. -->
<includes>
<include>*.xjb</include>
</includes>
<!-- Defaults to bindingExcludes. -->
<excludes>
<exclude>*.xj</exclude>
</excludes>
</fileset>
</binding>
</bindings>
<scanDependenciesForBindings>false</scanDependenciesForBindings>
<catalog>src/main/resources/catalog.cat</catalog>
<catalogs>
<catalog>
<dependencyResource>...</dependencyResource>
</catalog>
<catalog>
<url>...</url>
</catalog>
<catalog>
<fileset>
<!-- Defaults to schemaDirectory. -->
<directory>${basedir}/src/main/catalogs</directory>
<!-- Defaults to *.cat. -->
<includes>
<include>*.cat</include>
</includes>
<!-- By default nothing is excluded. -->
<excludes>
<exclude>*.ct</exclude>
</excludes>
</fileset>
</catalog>
</catalogs>
<!-- Default is true. -->
<episode>true</episode>
<episodeFile>${project.build.directory}/generated-sources/xjc/META-INF/sun-jaxb.episode</episodeFile>
<!-- Automatically adds if-exists="true" to schema bindings in the generated episode -->
<addIfExistsToEpisodeSchemaBindings>true</addIfExistsToEpisodeSchemaBindings>
<useDependenciesAsEpisodes>false</useDependenciesAsEpisodes>
<episodes>
<episode>
<groupId>org.jvnet.jaxb2.maven2</groupId>
<artifactId>maven-jaxb2-plugin-tests-po</artifactId>
<!-- Version of the artifact. May be omitted.
The plugin will then try to find the version using
the dependencyManagement and dependencies of the project. -->
<version>${project.version}</version>
</episode>
</episodes>
<!-- If set to true, passes Maven's active proxy settings to XJC. -->
<useActiveProxyAsHttpproxy>true</useActiveProxyAsHttpproxy>
<!-- Plugins -->
<args>
<arg>-XtoString</arg>
<arg>-Xequals</arg>
<arg>-XhashCode</arg>
<arg>-Xcopyable</arg>
</args>
<plugins>
<plugin>
<groupId>org.jvnet.jaxb2_commons</groupId>
<artifactId>jaxb2-basics</artifactId>
<version><!-- Version --></version>
</plugin>
</plugins>
<generateDirectory>${project.build.directory}/generated-sources/xjc</generateDirectory>
<!-- Default is unspecified -->
<generatePackage>com.acme.foo</generatePackage>
<writeCode>true</writeCode>
<readOnly>false</readOnly>
<packageLevelAnnotations>false</packageLevelAnnotations>
<noFileHeader>false</noFileHeader>
<enableIntrospection>false</enableIntrospection>
<markGenerated>false</markGenerated>
<removeOldOutput>false</removeOldOutput>
<cleanPackageDirectories>true</cleanPackageDirectories>
<forceRegenerate>false</forceRegenerate>
<encoding>${project.build.sourceEncoding}</encoding>
<!-- Default value is unspecified. -->
<locale>en</locale>
<specVersion>2.2</specVersion>
<!-- Default is false. -->
<extension>true</extension>
<strict>true</strict>
<disableXmlSecurity>true</disableXmlSecurity>
<accessExternalSchema>all</accessExternalSchema>
<accessExternalDTD>all</accessExternalDTD>
<debug>false</debug>
<!-- Set automatically by mvn -X -->
<verbose>true</verbose>
<disableDefaultExcludes>false</disableDefaultExcludes>
<addCompileSourceRoot>true</addCompileSourceRoot>
<addTestCompileSourceRoot>false</addTestCompileSourceRoot>
<contentForWildcard>false</contentForWildcard>
<produces>
<pattern>**/*.*</pattern>
</produces>
<otherDependsIncludes>
<pattern>**/*.*</pattern>
</otherDependsIncludes>
<otherDependsExcludes>
<pattern>**/*.xs</pattern>
</otherDependsExcludes>
<!-- Deprecated, use otherDependsIncludes and otherDependsExcludes instead -->
<otherDepends>
<file>src/main/resources/schema.xsd</file>
</otherDepends>
- Home
- Migration guide
-
JAXB Maven Plugin
- Quick Start
-
User Guide
- Basic Usage
- Specifying What To Compile
- Referencing Resources in Maven Artifacts
- Using Catalogs
- Using Episodes
- Modular Schema Compilation
- Controlling the Output
- Using JAXB Plugins
- Using a Specific JAXB Version
- Configuring Extension, Validation and XML Security
- IDE Integration
- Miscellaneous
- Configuring Proxies
- Maven Documentation
- Configuration Cheat Sheet
- Common Pitfalls and Problems
-
JAXB2 Basics Plugins
- Using JAXB2 Basics Plugins
- JSR-305 Support
-
JAXB2 Basics Plugins List
- SimpleEquals Plugin
- SimpleHashCode Plugin
- Equals Plugin
- HashCode Plugin
- ToString Plugin
- Copyable Plugin
- Mergeable Plugin
- Inheritance Plugin
- AutoInheritance Plugin
- Wildcard Plugin
- Setters Plugin
- Simplify Plugin
- EnumValue Plugin
- JAXBIndex Plugin
- FixJAXB1058 Plugin
- Commons Lang Plugin
- Default Value Plugin
- Fluent API Plugin
- Namespace Prefix Plugin
- Value Constructor Plugin
- Boolean Getter Plugin
- CamelCase Plugin
- XML ElementWrapper Plugin
- Parent Pointer Plugin
- Property Listener Injector Plugin
- Annox
- JAXB Annotate Plugin
-
HyperJAXB3
- Build System Support
- Customization Guide
- Databases
- Development guide
- Extension guide
- FAQ
- IDE Support
- Java Persistence
- JAXB
- JDK Support
- Project Templates
-
Reference
- Adding vendor-specific annotations
- Features
- Integrating Hyperjaxb3 in builds
- Introduction
- Making schema-derived classes ready for JPA
- Adding required properties
- Applying workarounds for JAXB vs. JPA conflicts
- Enforcing top-level classes
- Generating equals and hashCode methods
- Generating ORM metadata
- Generating persistence unit descriptor
- JPA 2 Support
- Making classes serializable
- Testing generated mappings
- Reference - single page
- Related Projects
- Sample projects
- Solutions
- Target Scenarios
- Test Projects
- Tutorials
- Best Practices
- FAQ
- Sample Projects
- Support
- License
- Distribution