maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adrian Herscu <bmf1...@fastmail.fm>
Subject [m2] maven-antlr-plugin searches for generated files in the source directory
Date Mon, 23 Apr 2007 10:47:01 GMT
Hi all,

Using Maven 2.0.6 and maven-antlr-plugin 2.0-beta-2-SNAPSHOT configured 
as follows:
         <configuration>
<sourceDirectory>${basedir}/src/main/antlr/com/acme/lang/compiler</sourceDirectory>
<!--
NOTE: I had to make the output go to source otherwise the build fails
--> 
<outputDirectory>${basedir}/src/main/antlr/com/acme/lang/compiler</outputDirectory>
           <grammarDefs>
             <gammar>
               <name>super.g</name>
             </gammar>
             <grammar>
               <name>ext1.g</name>
               <glib>super.g</glib>
             </grammar>
             <grammar>
               <name>ext2.g</name>
               <glib>super.g</glib>
             </grammar>
           </grammarDefs>
         </configuration>

Otherwise I get the following errors:
[INFO] [antlr:generate {execution: default}]
[INFO] Using Antlr grammar: 
C:\documents\pm\backyard\compiler\src\main\antlr\com\acme\lang\compiler\super.g
ANTLR Parser Generator   Version 2.7.4   1989-2004 jGuru.com

[INFO] Using Antlr grammar: 
C:\documents\pm\backyard\compiler\src\main\antlr\com
\acme\lang\compiler\ext1.g
ANTLR Parser Generator   Version 2.7.4   1989-2004 jGuru.com
error: cannot find/copy importVocab file 
C:\documents\pm\backyard\compiler\src\m
ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
error: cannot find/copy importVocab file 
C:\documents\pm\backyard\compiler\src\m
ain\antlr\com\acme\lang\compiler\SuperTokenTypes.txt
C:\documents\pm\backyard\compiler\target\generated-sources\antlr\com\acme\lang
\compiler\expandedext1.g:17:9: warning:Redefinition of token in toke
ns {...}: BLOCK

...and many other redefinition warnings ...

The same error is generated for each extN.

Adrian.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Mime
View raw message