[antlr-interest] Guidance sought on use of Maven and Eclipse
James Abley
james.abley at gmail.com
Tue Jun 30 06:19:14 PDT 2009
2009/6/30 Sam Barnett-Cormack <s.barnett-cormack at lancaster.ac.uk>:
> Hi all,
>
> So, currently I'm using eclipse with ANTLR IDE, and it's working nicely.
> I'm moving toward mavenising my work (which is broken into multiple
> projects), and the bits without ANTLR use are going fine.
>
> However, for the ANTLR bits, I'd ideally make use of maven's ANTLR
> plugin to make the project portable outside of eclipse. I also want to
> keep using at least the editor/debugger functionality of ANTLR IDE. Is
> there any way that people know of to marry these? How would I go about
> adding ANTLR to the maven pom for plugin as well as dependency? Are
> there docs, and where? And does anyone have experience of doing this in
> Eclipse and marrying it with an ANTLR Eclipse plugin?
>
> Thanks,
>
> Sam
>
> PS: I'm planning to ask the m2eclipse list as well, I just thought I'd
> try here first.
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
Hi Sam,
I have something like the following in my projects:
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>3.1.1.2</version>
<executions>
<execution>
<goals>
<goal>antlr</goal>
</goals>
</execution>
</executions>
</plugin>
Doing a maven build on a project puts stuff into
my-module/target/generated-sources/antlr and either Eclipse /
M2Eclipse or myself edited the project classpath to reference the
generated classes.
Cheers,
James
More information about the antlr-interest
mailing list