See : http://www.antlr.org/antlr3-maven-plugin/index.html Jim
On Jul 31, 2009, at 3:20 PM, hanasaki jiji <[email protected]> wrote: > Hello all... I plugged antlr into maven and ran in netbeans 6.7 and > the source produced is generating compile errors as below. Any > thoughts as to what is the cause and resolution? The grammar is the > JSON grammar downloaded from the antlr site. > > Thanks, > > plugin in maven > <plugin> > <groupId>org.codehaus.mojo</groupId> > <artifactId>antlr3-maven-plugin</artifactId> > <version>1.0</version> > <executions> > <execution> > <goals> > <goal>antlr</goal> > </goals> > </execution> > </executions> > </plugin> > > /// > Compiling 3 source files to ....../parser/target/classes > [ERROR]Mojo: > [ERROR] org.apache.maven.plugins:maven-compiler-plugin: > 2.0.2:compile > [ERROR]FAILED for project: > [ERROR] com.mycompany:parserHTTP:jar:1.0-SNAPSHOT > [ERROR]Reason: > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [97,12] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [142,12] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [211,20] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [235,25] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [277,65] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [342,12] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [363,54] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [364,53] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [427,12] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [451,17] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [489,57] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleSubtreeStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [628,62] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [664,63] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [700,62] > cannot find symbol > [ERROR]symbol : method next() > [ERROR]location: class org.antlr.runtime.tree.RewriteRuleTokenStream > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [718,20] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONParser.java: > [731,20] > cannot find symbol > [ERROR]symbol : variable _fsp > [ERROR]location: class org.xerial.json.impl.JSONParser > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [66,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [84,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [102,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [120,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [138,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [156,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [191,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [210,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [229,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [723,13] > cannot find symbol > [ERROR]symbol : variable channel > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [727,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [771,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [789,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > [ERROR]....../parser/target/generated-sources/antlr/JSONLexer.java: > [859,16] > cannot find symbol > [ERROR]symbol : variable type > [ERROR]location: class org.xerial.json.impl.JSONLexer > > List: http://www.antlr.org/mailman/listinfo/antlr-interest > Unsubscribe: > http://www.antlr.org/mailman/options/antlr-interest/your-email-address List: http://www.antlr.org/mailman/listinfo/antlr-interest Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "il-antlr-interest" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/il-antlr-interest?hl=en -~----------~----~----~----~------~----~------~--~---
