Hi I use the antlr plugin, without having to specify a special archetype. Files are stored into src/main/antlr3. Here is the dependency for the pom.xml:
<plugin> <groupId>org.antlr</groupId> <artifactId>antlr3-maven-plugin</artifactId> <version>3.2</version> <executions> <execution> <goals> <goal>antlr</goal> </goals> </execution> </executions> </plugin> To compile the grammars, I use "mvn antlr3:antlr". Hope this help Fabien. Le 22/06/11 15:34, Jim Idle a écrit : > Antlr is only 2.2.1 compliant itself. However, there is a bug in the 3.3 > archetype and you have to generate using the 3.2.1 archetype and then > change the generated pom to use 3.3 afterwards. I think that the plugin > MIGHT work with Maven 3.0.3 but no guarantees. You are better using Maven > 2.2.1 and then upgrading to 3.0.3 when we upgrade ANTLR to that release. > > Jim > >> -----Original Message----- >> From: [email protected] [mailto:antlr-interest- >> [email protected]] On Behalf Of Joey Mink >> Sent: Wednesday, June 22, 2011 2:26 PM >> To: [email protected] >> Subject: [antlr-interest] ANTLR 3 and Maven 3 >> >> Hi, >> >> I'm trying to convert an existing Java project (dependent on ANTLR 3) >> to maven. I've found that the recommendations on the list are that we >> use the archetype to create a sample project: >> >> http://www.antlr.org/wiki/display/ANTLR3/Building+ANTLR+Projects+with+M >> aven >> >> I'm currently using Maven 3.0.3, and the command recommend in the above >> fails: >> >> [ERROR] Failed to execute goal >> org.apache.maven.plugins:maven-archetype-plugin:2.0:generate (default- >> cli) on project standalone-pom: The desired archetype does not exist >> (org.antlr:antlr3-maven-archetype:3.3) -> [Help 1] >> >> The 2 comments on that page reflect the same failure I'm experiencing. >> Is this a compatibility issue with Maven 3? >> >> 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 -- Fabien Hermenier Postdoctoral researcher at Flux http://sites.google.com/site/hermenierfabien/home 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.
