Using the javarebel-maven-plugin results in output like:
<classpath fallback="default">
<dir name=".. source ... l/src/main/resources">
</dir>
<dir name="...target ... /classes">
</dir>
</classpath>
In my case, I don't want the resources to appear *at all*; I have hibernate mapping files that appear twice otherwise, which is bad.
The best I could do is to exclude them in the target/classes with
<dir name="...target ... /classes">
<exclude name="**/*.xml"/>
</dir>
However, in the code, this doesn't seem to work. There is a part which does something like (with spring)
applicationContext.getResources("classpath*:/res/hbm/**/*.hbm.xml");
And it's still finding resources that ought to have been excluded (I.E it finds them twice - once in src/main/resources, once in target/classes - which should have been excluded).
Is there a way to get the exclude to work, or to disable the resources directory entirely in the maven plugin (save for manually generating rebel.xml) ?
