[antlr-interest] Compiling 3.4 with maven

A Z asicaddress at gmail.com
Wed Jan 25 13:49:20 PST 2012


Hello all,

Has anyone successfully compiled a version 3.4 .jar using maven? For me the
"Uber jar" compile fails with the following:

[INFO]
------------------------------------------------------------------------
[INFO] Skipping ANTLR Master build control POM 3.4
[INFO] This project has been banned from the build due to previous failures.
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ANTLR Master build control POM 3.4 ................ SUCCESS [0.709s]
[INFO] Antlr 3.4 Runtime ................................. FAILURE [5.103s]
[INFO] ANTLR Grammar Tool v 3.4 .......................... SKIPPED
[INFO] Maven plugin for ANTLR V3.4 ....................... SKIPPED
[INFO] ANTLR gUnit v3.4 .................................. SKIPPED
[INFO] Maven plugin for gUnit ANTLR V3.4 ................. SKIPPED
[INFO] ANTLR3 Maven Archetype 3.4 ........................ SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 7.172s
[INFO] Finished at: Wed Jan 25 14:03:18 GMT+06:00 2012
[INFO] Final Memory: 14M/154M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-javadoc-plugin:2.8:jar (attach-javadocs) on
project antlr-runtime: MavenReportException: Error while creating archive:
[ERROR] Exit code: 1 -
.../antlr-3.4/runtime/Java/src/main/java/org/antlr/runtime/._MissingTokenException.java:1:
warning: unmappable character for encoding UTF-8
[ERROR] Mac OS X <lots of binary chars>
[ERROR] ^

The file in question is definitely not ASCII.


I then tried compiling /tool and this completes successfully but it does
not create an executable jar:
Failed to load Main-Class manifest attribute from
.../.m2/repository/org/antlr/antlr/3.4/antlr-3.4.jar

My only goal here is to modify the code generation templates. Any ideas?


More information about the antlr-interest mailing list