[antlr-interest] antlr3 maven plugin not executed during clean install

Jim Idle jimi at temporal-wave.com
Sun Sep 2 10:33:14 PDT 2012


It is almost certainly something to do with your own pom, although
possibly it is because you are building a war project. Did  you try just
the simplest of plugin configs? Did you do a full debug trace of the build
invocation?

Jim

> -----Original Message-----
> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
> bounces at antlr.org] On Behalf Of ds at escalon.de
> Sent: Sunday, September 02, 2012 1:21 AM
> To: antlr-interest at antlr.org
> Subject: [antlr-interest] antlr3 maven plugin not executed during clean
> install
>
>
>
> Hi,
>
> The antlr3 plugin does not generate sources for me when I run mvn clean
> install on my war project using maven 3.0.4:
> Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100) Maven home:
> C:\Programme\ASF\apache-maven-3.0.4\bin\..
> Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
> Java home: C:\programme\java\jdk1.6.0_31\jre
>
> I have configured the antlr3 plugin like this:
>
>       <plugin>
>         <groupId>org.antlr</groupId>
>         <artifactId>antlr3-maven-plugin</artifactId>
>         <version>3.4</version>
>         <executions>
>           <execution>
>             <configuration>
>               <goals>
>                 <goal>antlr</goal>
>               </goals>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>
> I tried a number of other configurations, but this should execute the
> antlr goal automatically during the default lifecycle during process-
> sources since that is how the Mojo is annotated:
>
>  * @goal antlr
>  * @phase process-sources
>
> (I also tried to add <phase>generate-sources</phase> and also the
> compile phase, no effect)
>
> The antlr goal is never invoked. I need to do it manually like this:
>
> mvn clean antlr3:antlr install
>
> Only then, the sources are generated properly and my build succeeds.
> Therefore I think that my .g files are in the right place (below
> src/main/antlr3/[fully qualified package]/). What can be the reason for
> this? Is it because I am building a war project or because I use Maven
> 3.0.4 and not Maven 3.0.3?
>
> Dietrich Schulten
>
> 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