[antlr-interest] ANTLR 3 and Maven 3

Jim Idle jimi at temporal-wave.com
Wed Jun 22 14:49:04 PDT 2011


I think you have to use Maven 2.2.1 as I said earlier. I have not build a
version against 3.0.3 and so I don't know if it will work or not.

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of Joey Mink
> Sent: Wednesday, June 22, 2011 2:47 PM
> To: Fabien Hermenier
> Cc: antlr-interest at antlr.org
> Subject: Re: [antlr-interest] ANTLR 3 and Maven 3
>
> 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
> <hermenierfabien at gmail.com
> > 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: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> > >> bounces at antlr.org] On Behalf Of Joey Mink
> > >> Sent: Wednesday, June 22, 2011 2:26 PM
> > >> To: antlr-interest at antlr.org
> > >> 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+wi
> > >> th+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
> >
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-
> email-address


More information about the antlr-interest mailing list