This plugin is for processing grammar files into java sources.
SableCC is a great mechanism for specifying a grammar and then generating the supporting implementation of java classes. See http://www.sablecc.org for more information about SableCC itself.
This plugin will process all *.grammar files in the sourceDirectory into a common generated sources output directory. This will occur during the generate-resources phase and the sources directory will be added to the project for the compile phase.
<project> ... <build> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>sablecc-maven-plugin</artifactId> <executions> <execution> <phase>generate-source</phase> <goals> <goal>generate</goal> </goals> </execution> </executions> </plugin> </plugins> ... </build> ... </project>