mojohaus / jaxb2-maven-plugin

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

Allow rename of single generated file when no namespace defined. goal:schemagen #97

Closed simpletasks closed 6 years ago

simpletasks commented 6 years ago

Schemagen goal. Xsd file is always generated. But instead of forced use of default file name 'schema1.xsd' allow user to define custom file name.

95

simpletasks commented 6 years ago

Travis log state : The command "mvn -N io.takari:maven:wrapper -Dmaven=${MAVEN_VERSION}" failed and exited with 1 during . How to fix that ?

lennartj commented 6 years ago

This functionality is already present within the plugin, by means of a transformSchemas configuration element. However, I will flesh out the documentation for the next release to include some recipes, including how to interact with the data given in the package-info.java file.

http://www.mojohaus.org/jaxb2-maven-plugin/Documentation/v2.3/schemagen-mojo.html#transformSchemas