Related question How to configure IntelliJ IDEA and/or Maven to automatically add directories with Java source code generated using jaxb2-maven-plugin?
I have a cust
Whoever wrote that plugin screwed up big time. That's not the way to do it!
Any workaround would be a huge hack, make the plugin developer aware of his bug.
Sorry, that's the only thing to do.
OK here's a hack, directly after your plugin's execution, use the antrun plugin to move the directory somewhere else:
maven-antrun-plugin
1.6
process-sources
run
In this example, toolname
should be replaced by anything that uniquely identifies the plugin that created the code and com
stands for the root of the created packages. If you have multiple package roots, you probably need multiple
tasks.
But if the plugin adds the folder as source folder, then you're screwed.