[antlr-interest] antlr3-maven-plugin not generating sources
T Stotts
timotheus at tstotts.net
Tue Jun 2 01:43:39 PDT 2009
I have created a Java project managed by Maven 2 that includes Antlr 3
grammar files. Following the instructions at:
http://antlr.org/antlr3-maven-plugin/index.html
resulted in unexpected behavior.
(1) Antlr is never invoked during the generate-sources or compile
phases. The grammars are not processed.
# mvn compile
or
# mvn package
do not result in the generation of Antlr source, nor the compilation
there of.
(2) Manually invoking the plugin with:
# mvn mvn org.antlr:antlr3-maven-plugin:3.1.3-1:antlr
does cause the grammar files to be processed, and the generated sources
to be placed under:
./target/generated-sources/antlr3/
However, there is no phase/rule to then compile these generated
sources.
My pom.xml contains:
<build>
<plugins>
...
<plugin>
<groupId>org.antlr</groupId>
<artifactId>antlr3-maven-plugin</artifactId>
<version>3.1.3-1</version>
<executions>
<execution>
<configuration>
<goals>
<goal>antlr</goal>
</goals>
<verbose>true</verbose>
</configuration>
</execution>
</executions>
</plugin>
...
</plugins>
</build>
--
aka: timotheus
web: http://tstotts.net/
More information about the antlr-interest
mailing list