The
online documentation gives the following as an example of how the output directory can be indicated for generated files:
<directory>target/generated-sources/jooq</directory>
The result is less than correct, as this will unexpectedly output the classes relative to the root project if called from a
subproject in a hierarchical Maven configuration.
I could make a wild guess and say that this is probably a bug in the jOOQ Maven plugin itself, resolving the given directory relative to the "current directory" rather than first requesting the current project directory from Maven and then resolving the given directory to that. However, one can work around this bug by using the following:
<directory>${project.build.directory}/generated-sources/jooq</directory>