Skip to main content

How to make maven generate sources using antlr-plugin and update the jar to contain the classes.

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2011-09-21


I am using antlr to generate a parser for a simple command line too. But the tool needs to support user specification of commands. So, In my main class I call a code to create a map of commands specified by the user. Using that map I need to modify the grammar and thereby generate a new parser at runtime. Is there any way I can do that using maven? Thankyou.