New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using <matchers/> with <schemas/> in Maven code generation #7418
Comments
I use 3.11.2 also got this error.
|
Looking into this, this seems to be a bug in the maven plugin plugin. Will investigate and report issues to Maven accordingly. Doesn't really look as though there's a workaround right now, short of using standalone code generation or programmatic code generation configurations :-/ |
This seems to be how the maven plugin architecture works, unfortunately. There's a <configuration>
<generator>
<name>org.jooq.codegen.JavaGenerator</name>
<strategy>
<matchers>
<schemas>
<xyz>
<expression>^xhome_xbag_(.*)$</expression>
<schemaClass>
<transform>PASCAL</transform>
<expression>$1_DB</expression>
</schemaClass>
<schemaIdentifier>
<transform>UPPER</transform>
<expression>DB_$1</expression>
</schemaIdentifier>
</xyz>
</schemas>
</matchers>
</strategy>
</generator>
</configuration> |
Fixed through #7747 with incompatible change 7373ad1 Due to the incompatible nature of the change, and given the workaround shown here #7418 (comment), this fix will not be merged to jOOQ 3.11 or older versions. |
When using
<matchers/>
in the Maven code generation, specifying<schemas/>
doesn't work. The build fails with the following error:I.e. there are two conflicting
Schema
types, which Maven doesn't seem to be able to distinguish...The text was updated successfully, but these errors were encountered: