Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: None
-
Labels:None
-
Environment:All
Description
Current version of the ANTLR plugin for maven provides the minimum amount of support required for successful generation of an eclipse project based on a POM with ANTLR files. The resulting eclipse project has a reference to the generated source directory, enabling eclipse builds. However, the link to the original grammars is not visible to the users of the resulting eclipse project.
Many ANTLR users running eclipse enjoy a great plugin for eclipse for working with ANTLR grammars (http://antlreclipse.sourceforge.net). It would be very desirable to make the ANTLR plugin for maven aware of the ANTLR plugin for eclipse, with the following functionality:
1. ANTLR plugin for maven provides an option to turn the ANTLR-eclipse integration on and off
2. The src/main/antlr is added to the list of source folders of the generated eclipse project
3. When the ANTLR-eclipse integration is on, the "ANTLR project nature" is turned on in the generated eclipse project (see the last screenshot on the http://antlreclipse.sourceforge.net page).
4. When the ANTLR-eclipse integration is on, the options the ANTLR plugin for maven supplies to ANTLR are added to each grammar file processed by the ANTLR plugin for maven (http://antlreclipse.sourceforge.net/images/grammar-properties.png).
I am nearly certain that this sort of "magical" integration will require a lot of expert-level work from both the maven-antlr and the maven-eclipse teams. Moreover, doing this sort of things (i.e. maven-antlr plugin providing info for maven-eclipse plugin specific to the grammar files, and maven-eclipse plugin picking up and acting on this information) may not be currently supported. I think that this could be a very desirable functionality for maven plugins supporting other code-generating tools.