Well, I don't have your warnings and I don't use any specific repositories. However, files are already on my local repos since a long time. Just in case, here is a more complete pom.xml
--- <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>btrPlaceSL</groupId> <artifactId>btrPlaceSL</artifactId> <version>1.0</version> <dependencies> ... <dependency> <groupId>org.antlr</groupId> <artifactId>antlr</artifactId> <version>3.3</version> <type>jar</type> <optional>false</optional> </dependency> ... </dependencies> <build> <plugins> <plugin> <groupId>org.antlr</groupId> <artifactId>antlr3-maven-plugin</artifactId> <version>3.2</version> <executions> <execution> <goals> <goal>antlr</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </project> --- Le 22/06/11 15:46, Joey Mink a écrit : > Fabien, > > Thanks for the reply - I've actually tried your recommendation > previously, but I find I have the following problem if I simply `mvn > clean` on my project: > > Downloading: > http://repo1.maven.org/maven2/org/codehaus/mojo/antlr3-maven-plugin/3.2/antlr3-maven-plugin-3.2.pom > [WARNING] The POM for org.codehaus.mojo:antlr3-maven-plugin:jar:3.2 is > missing, no dependency information available > > And ultimately, I get this error: > > [ERROR] Plugin org.codehaus.mojo:antlr3-maven-plugin:3.2 or one of its > dependencies could not be resolved: Failed to read artifact descriptor > for org.codehaus.mojo:antlr3-maven-plugin:jar:3.2: Could not find > artifact org.codehaus.mojo:antlr3-maven-plugin:pom:3.2 in central > (http://repo1.maven.org/maven2) -> [Help 1] > > Might I need to add a special repository for antlr3-maven-plugin? > > On Wed, Jun 22, 2011 at 5:39 PM, Fabien Hermenier > <[email protected] <mailto:[email protected]>> wrote: > > 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:[email protected]> [mailto:antlr-interest- > <mailto:antlr-interest-> > >> [email protected] <mailto:[email protected]>] On Behalf Of Joey > Mink > >> Sent: Wednesday, June 22, 2011 2:26 PM > >> To: [email protected] <mailto:[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 > > -- 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.
