[antlr-interest] Compiling 3.4 with maven

A Z asicaddress at gmail.com
Thu Jan 26 12:40:40 PST 2012


This worked.

Thank you.

On Fri, Jan 27, 2012 at 2:32 AM, Gokulakannan Somasundaram <
gokul007 at gmail.com> wrote:

> Sometime back i had the same issue. Try this.
>   In Build.txt, the command mentioned for building Uber jar is mentioned
> incorrectly and it is not working fine. But in the pom.xml, it is
> mentioned correctly. Please do update the Build.txt also with the same.
> "mvn -Duber -DskipTests package assembly:assembly"
>
> Gokul.
>
> On Fri, Jan 27, 2012 at 2:49 AM, A Z <asicaddress at gmail.com> wrote:
>
>> I'm using 3.0.3
>>
>> $ mvn -v
>> /usr/lib/jvm/java
>> Apache Maven 3.0.3 (rNON-CANONICAL_2011-10-11_11-56_mockbuild; 2011-10-11
>> 17:56:36+0600)
>> Maven home: /usr/share/maven
>> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
>> Java home: /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0.x86_64/jre
>> Default locale: en_US, platform encoding: UTF-8
>> OS name: "linux", version: "3.2.1-3.fc16.x86_64", arch: "amd64", family:
>> "unix"
>>
>>
>> I found the cause of this problem. antlr-3.4.tar.gz contains metadata
>> files
>> created by OS X, all prefixed with '._' . Since I'm on Linux, maven tries
>> to compile them and fails. Deleting all those files allows all sub-modules
>> to compile, except for one.
>>
>>
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Reactor Summary:
>> [INFO]
>> [INFO] ANTLR Master build control POM 3.4 ................ FAILURE
>> [1:02.810s]
>> [INFO] Antlr 3.4 Runtime ................................. SUCCESS
>> [1:27.439s]
>> [INFO] ANTLR Grammar Tool v 3.4 .......................... SUCCESS
>> [26.532s]
>> [INFO] Maven plugin for ANTLR V3.4 ....................... SUCCESS
>> [28.607s]
>> [INFO] ANTLR gUnit v3.4 .................................. SUCCESS
>> [11.916s]
>> [INFO] Maven plugin for gUnit ANTLR V3.4 ................. SUCCESS
>> [1.777s]
>> [INFO] ANTLR3 Maven Archetype 3.4 ........................ SUCCESS
>> [7.148s]
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 5:39.210s
>> [INFO] Finished at: Thu Jan 26 12:33:37 GMT+06:00 2012
>> [INFO] Final Memory: 24M/57M
>> [INFO]
>> ------------------------------------------------------------------------
>> [ERROR] Failed to execute goal
>> org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly
>> (default-cli) on project antlr-master: Error reading assemblies: No
>> assembly descriptors found. -> [Help 1]
>>
>>
>> Any ideas getting around this?
>> Thanks.
>>
>>
>>
>> On Thu, Jan 26, 2012 at 4:01 AM, Jim Idle <jimi at temporal-wave.com> wrote:
>>
>> > Works fine here - there is likely something wrong with your setup. What
>> > version of maven are you using? What OS? Did you try clearing the .m2
>> > file. Did you follow the instructions in the BUILD.TXT file, or did you
>> > just type 'mvn' and hoped it would work?
>> >
>> > Jim
>> >
>> > > -----Original Message-----
>> > > From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> > > bounces at antlr.org] On Behalf Of A Z
>> > > Sent: Wednesday, January 25, 2012 1:49 PM
>> > > To: antlr-interest at antlr.org
>> > > Subject: [antlr-interest] Compiling 3.4 with maven
>> > >
>> > > 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/._MissingTokenExceptio
>> > > n.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?
>> > >
>> > > List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> > > Unsubscribe:
>> http://www.antlr.org/mailman/options/antlr-interest/your-
>> > > email-address
>> >
>> > List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> > Unsubscribe:
>> > http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>> >
>>
>> List: http://www.antlr.org/mailman/listinfo/antlr-interest
>> Unsubscribe:
>> http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>>
>
>


More information about the antlr-interest mailing list