[antlr-interest] Maven Plugin Configuration

Ramirez, Paul M (388J) paul.m.ramirez at jpl.nasa.gov
Sun Sep 27 13:05:02 PDT 2009


Hi All,

I noticed that if I wanted to configure the plugin the website description http://antlr.org/antlr3-maven-plugin/usage.html seemed to have the configuration tag in the wrong place.  I'm not sure if this is universally true for everyone but if I configuration tag in the other place the plugin would not work.

Here is what is on the site:

<plugin>
    <groupId>org.antlr</groupId>
    <artifactId>antlr3-maven-plugin</artifactId>
    <version>3.1.3-1</version>

    <executions>

        <execution>
            <configuration>
                <goals>
                    <goal>antlr</goal>
                </goals>
                <conversionTimeout>10000</conversionTimeout>
                <debug>false</debug>
                <dfa>false</dfa>
                <nfa>false</nfa>
                <excludes><exclude/></excludes>
                <includes><include/></includes>
                <libDirectory>src/main/antlr3/imports</libDirectory>
                <messageFormat>antlr</messageFormat>
                <outputDirectory>target/generated-sources/antlr3</outputDirectory>
                <printGrammar>false</printGrammar>
                <profile>false</profile>
                <report>false</report>
                <sourceDirectory>src/main/antlr3</sourceDirectory>
                <trace>false</trace>
                <verbose>true</verbose>
            </configuration>
        </execution>
    </executions>

</plugin>

Here is what I found actually worked for configuration:

<plugin>
    <groupId>org.antlr</groupId>
    <artifactId>antlr3-maven-plugin</artifactId>
    <version>3.1.3-1</version>

    <executions>
        <execution>
            <goals>
                <goal>antlr</goal>
             </goals>
            <configuration>                     <!--- CONFIGURATION TAG AFTER GOAL -->
                <conversionTimeout>10000</conversionTimeout>
                <debug>false</debug>
                <dfa>false</dfa>
                <nfa>false</nfa>
                <excludes><exclude/></excludes>
                <includes><include/></includes>
                <libDirectory>src/main/antlr3/imports</libDirectory>
                <messageFormat>antlr</messageFormat>
                <outputDirectory>target/generated-sources/antlr3</outputDirectory>
                <printGrammar>false</printGrammar>
                <profile>false</profile>
                <report>false</report>
                <sourceDirectory>src/main/antlr3</sourceDirectory>
                <trace>false</trace>
                <verbose>true</verbose>
            </configuration>
        </execution>
    </executions>

</plugin>

Thanks,
Paul Ramirez
Senior Computer Scientist
Jet Propulsion Laboratory
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090927/4679f3ef/attachment.html 


More information about the antlr-interest mailing list