I'm using Maven to build and deploy jOOQ. I now want to start generating XJC-generated classes using appropriate Maven plugins (before, I used ant scripts). This works very nicely for me, but I'm afraid that some users wanting to build jOOQ themselves without Maven will now have trouble generating those missing sources. So I'd like to move those sources out of target/generated-sources/xjc
and into src/main/java
, in order to be able to put them under version control.
- Is this a common practice?
- How can I do it (should I use plugins to move the files on a low-level, or should I generate files directly into
src/main/java
)? - Do I have other options?
Note, the underlying XSD hardly ever changes, so I don't have to generate these sources every time I build...