[antlr-interest] using the antlr maven repository

Pete Siemsen siemsen at ucar.edu
Tue Mar 31 15:32:38 PDT 2009


Jim,

Thanks, that helped.  Now I get

$ mvn package
[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------
[INFO] Building TranslateCIM
[INFO]    task-segment: [package]
[INFO]  
------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/3.1.3/antlr3-maven-plugin-3.1.3.pom
11K downloaded
Downloading: http://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/3.1.3/antlr3-maven-plugin-3.1.3.jar
13K downloaded
[INFO] [resources:resources]
[WARNING] Using platform encoding (MacRoman actually) to copy filtered  
resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /Users/siemsen/TranslateCIM/ 
src/main/resources
[INFO] [compiler:compile]
[INFO] Compiling 2 source files to /Users/siemsen/TranslateCIM/target/ 
classes
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] Compilation failure

/Users/siemsen/TranslateCIM/src/main/java/com/kyben/translatecim/ 
TranslateCIM.java:[9,29] cannot find symbol
symbol  : class TranslateCIMLexer
location: package com.kyben.translatecim

/Users/siemsen/TranslateCIM/src/main/java/com/kyben/translatecim/ 
TranslateCIM.java:[68,2] cannot find symbol
symbol  : class TranslateCIMLexer
location: class com.kyben.translatecim.TranslateCIM

/Users/siemsen/TranslateCIM/src/main/java/com/kyben/translatecim/ 
TranslateCIM.java:[69,17] cannot find symbol
symbol  : class TranslateCIMLexer
location: class com.kyben.translatecim.TranslateCIM

/Users/siemsen/TranslateCIM/src/main/java/com/kyben/translatecim/ 
TranslateCIM.java:[74,2] cannot find symbol
symbol  : class TranslateCIMParser
location: class com.kyben.translatecim.TranslateCIM

/Users/siemsen/TranslateCIM/src/main/java/com/kyben/translatecim/ 
TranslateCIM.java:[74,34] cannot find symbol
symbol  : class TranslateCIMParser
location: class com.kyben.translatecim.TranslateCIM


[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 4 seconds
[INFO] Finished at: Tue Mar 31 16:05:25 MDT 2009
[INFO] Final Memory: 20M/47M
[INFO]  
------------------------------------------------------------------------
okapi-2$

I see that the new plugin is supposed to write to target/generated- 
sources/antlr3.  My target/generated-sources/ has an "antlr"  
subdirectory but no "antlr3" subdirectory.  I couldn't find a  
TranslateCIMLexer.class anywhere in my directory tree.  Here's my  
pom.xml file:



-- Pete


On Mar 31, 2009, at 2:01 PM, Jim Idle wrote:

> Pete Siemsen wrote:
>>
>> Jim,
>>
>> I did 'mvn clean'.  I moved my .g file to /src/main/antlr3.  It's a  
>> v3 grammar.  I modified my pom.xml file as described at http://antlr.org/antlr3-maven-plugin/index.html 
>> .  Now I get
>>
> Don't use the -SNAPSHOT versions, it should be just 3.1.3. You can  
> only use the snapshot versions if you define the ANTLR snapshot  
> repository in your pom, and you don't need to do that unless you  
> absolutely require some fix from the latest snapshot, which is 3.1.4  
> anyway :-)
>
> I will check the docs as they are probably still saying -SNAPSHOT !
>
> Jim
>> $ mvn package
>> [INFO] Scanning for projects...
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Building TranslateCIM
>> [INFO]    task-segment: [clean]
>> [INFO]  
>> ------------------------------------------------------------------------
>> Downloading: http://download.java.net/maven/2/org/antlr/antlr3-maven-plugin/3.1.3-SNAPSHOT/antlr3-maven-plugin-3.1.3-SNAPSHOT.pom
>> [INFO]  
>> ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO]  
>> ------------------------------------------------------------------------
>> [INFO] Error building POM (may not be this project's POM).
>>
>>
>> Project ID: org.antlr:antlr3-maven-plugin
>>
>> Reason: POM 'org.antlr:antlr3-maven-plugin' not found in  
>> repository: Unable to download the artifact from any repository
>
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090331/655b8348/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pom.xml
Type: text/xml
Size: 3505 bytes
Desc: not available
Url : http://www.antlr.org/pipermail/antlr-interest/attachments/20090331/655b8348/attachment.xml 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090331/655b8348/attachment-0001.html 


More information about the antlr-interest mailing list