grammars-v4 icon indicating copy to clipboard operation
grammars-v4 copied to clipboard

[build] Add java package in Maven build

Open lbovet opened this issue 1 year ago • 1 comments

As alternative to #4002. This moves the generated classes into a Java package (and not keep them in the unnamed package) without disturbing the trgen process. This way, one can build a reusable JAR containing the lexer and parser.

The plugin configuration is done globally in the root POM. To benefit from it, grammar sub-projects have to adapt their POM and base classes. This PR includes the adaptation for the plsql grammar to illustrate what has to be done.

lbovet avatar Mar 19 '24 10:03 lbovet

Yes, this is an intermediate solution until there is something better integrated with the multi-target approach.

lbovet avatar Mar 19 '24 15:03 lbovet

@lbovet thanks!

teverett avatar Mar 25 '24 14:03 teverett