[antlr-interest] Maven antlr integration ?
Vijay Raj
call.vijayraj at yahoo.com
Sat Feb 19 19:53:12 PST 2011
For a particular task regarding parsing java 6 grammars - my maven configuration
of using antlr looks like this:
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>3.1.3-1</version>
<configuration>
<goals>
<goal>antlr</goal>
</goals>
<conversionTimeout>10000</conversionTimeout>
<grammars>java.g</grammars>
</configuration>
I am getting the following error message:
Failed to execute goal
org.apache.maven.plugins:maven-antlr-plugin:2.0-beta-1:generate (default-cli) on
project root: The parameters 'grammars' for goal
org.apache.maven.plugins:maven-antlr-plugin:2.0-beta-1:generate are missing or
invalid -> [Help 1]
The documentation under reference:
http://www.antlr.org/wiki/display/ANTLR3/Using+ANTLR+3+with+Maven+2 . Is that up
to date with the reality ?
I am using the Java 6 grammar as in the grammars page, thanks to Yang Jiang ,
here at : http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g
.
$ mvn --version
Apache Maven 3.0.2 (r1056850; 2011-01-09 06:28:10+0530)
Let me know what I could be missing here !
More information about the antlr-interest
mailing list