mojohaus / jaxb2-maven-plugin

JAXB2 Maven Plugin
https://www.mojohaus.org/jaxb2-maven-plugin/
Apache License 2.0
106 stars 77 forks source link

Binding files are ignored unless they have the .jxb file extension #59

Closed stevenpaligo closed 6 years ago

stevenpaligo commented 7 years ago

Binding files are ignored unless they have the .jxb file extension. For example, the following does nothing:

<xjbSource>${basedir}/src/main/resources/xjb/my-bindings.xml</xjbSource>

lennartj commented 7 years ago

What happens if you remove the ${basedir} from xjbSource element?

stevenpaligo commented 7 years ago

Same problem.

lennartj commented 6 years ago

This is actually working as intended. Will fix documentation to indicate the algorithm here. Unless you explicitly give a value to xjbExcludes, standard excludes will be in effect. For XJB sources, the standard excludes are files ending in xsd plus any of the following file endings:

private static final String[] STANDARD_EXCLUDE_SUFFIXES = {"README.*", "\\.xml", "\\.txt"};