maven-jibx-plugin doesn't support nested binding directories

View: New views
1 Messages — Rating Filter:   Alert me  

maven-jibx-plugin doesn't support nested binding directories

by ertnutler :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm working on a project that will have lots of binding files and I'd like to organize them in a directory structure under a parent "binding root" directory.  After fiddling with the current implementation of the maven plugin and digging through the source, I realize this isn't currently supported. The current code uses a GlobFilenameFilter from the Jakarta ORO project.  This type of FileNameFilter doesn't support Ant-style patterns like Maven users generally expect.  So something like this:

...
<configuration>
  <directory>src/main/resource/marshal/jibx</directory>
  <includes>
    <include>**/*-binding.xml</include>
  </includes>
</configuration>
...

doesn't return any matches for a directory structure that isn't totally flat.  Is this by design or is there any effort enhance this?  Is everyone using the maven plugin putting all their binding files in one flattened directory structure?

Thanks in advance.
LightInTheBox - Buy quality products at wholesale price!