Skip to main content

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

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
No replies
nikolodien
Offline
Joined: 2011-09-21

Hi,

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.