[antlr-interest] Maven Plugin Configuration

Luca Li Greci luca.ligreci at gmail.com
Tue Sep 29 12:40:28 PDT 2009


2009/9/27 Ramirez, Paul M (388J) <paul.m.ramirez at jpl.nasa.gov>

>  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
>
>
Hi Paul,

Actually you're right, it's very odd to have the goal defined inside the
goal. General speaking it should be as you wrote: the goals and
configuration are 2 separates section.


>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe:
> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>

-- 
Victor Hugo wrote, “The future has many names: For the weak, it means the
unattainable. For the fearful, it means the unknown. For the courageous, it
means opportunity.”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090929/aceee2e2/attachment.html 


More information about the antlr-interest mailing list