[antlr-interest] antlr3 maven plugin not executed during clean install
ds at escalon.de
ds at escalon.de
Sun Sep 2 01:21:14 PDT 2012
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
More information about the antlr-interest
mailing list