You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using jaxb2-maven-plugin to generate POJOs from XSD.
I do not need episode file so I turned it off this way:
<generateEpisode>false</generateEpisode>
But it seems that this setting does not work because the plugin still generating an episode file under the given directory: src/main/java/META-INF/JAXB/episode_default.xjb
This is so bad because this file appears in the source directory after each maven build.
The only one workaround I have found is to add this crazy directory to the gitignore list to avoid to be pushed to the source code repo.
You should really not use the outputDirectory to stash the sources under src/main/java.
They are generated sources, and should go under target/generated-sources/jaxb2 which is the default.
The sources will still be included in the compilation unit when stashed in the generated sources directory.
I am using
jaxb2-maven-plugin
to generate POJOs from XSD.I do not need episode file so I turned it off this way:
<generateEpisode>false</generateEpisode>
But it seems that this setting does not work because the plugin still generating an episode file under the given directory:
src/main/java/META-INF/JAXB/episode_default.xjb
This is so bad because this file appears in the source directory after each maven build.
The only one workaround I have found is to add this crazy directory to the gitignore list to avoid to be pushed to the source code repo.
Plugin version: 2.5.0
configuration:
The text was updated successfully, but these errors were encountered: