[antlr-interest] Is this a Maven related bug? syntax error @[1, 9] in ._Antlr3ErrorLog.java

The Researcher researcher0x00 at gmail.com
Tue Aug 30 11:11:33 PDT 2011


Hi,

This is my first time using Maven.

My goal was to build the Tool because I needed to flip a debug flag in the
analysis code.
Yes, I know that I probably only need uber jar, but for first time I stuck
to the instructions.

I based this on the instructions in BUILD.txt.
Yes I did read the comments in ANTLR-3.4/pom.xml.

Since I am using snapshots on a Virtual Machine, I did it three times,
restoring the snapshot each time, to make sure it was reproducible.

So,

Maven command works.

student at antlr:~$ mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: /usr/local/apache-maven/apache-maven-3.0.3
Java version: 1.6.0_18, vendor: Sun Microsystems Inc.
Java home: /usr/lib/jvm/java-6-openjdk/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-5-686", arch: "i386", family: "unix"
student at antlr:~$


Maven install worked

student at antlr:~/antlr-3.4$ mvn -N install
...


[INFO] Installing /home/student/antlr-3.4/pom.xml to
/home/student/.m2/repository/org/antlr/antlr-master/3.4/antlr-master-3.4.pom
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1:10.373s
[INFO] Finished at: Tue Aug 30 13:29:46 EDT 2011
[INFO] Final Memory: 3M/6M
[INFO]
------------------------------------------------------------------------
student at antlr:~/antlr-3.4$


Build of ANTLR-3.4 failed for Maven plugin.


 student at antlr:~/antlr-3.4$ mvn -Dmaven.test.skip=true
[INFO] Using 'UTF-8' encoding to read mojo metadata.
[INFO] Applying mojo extractor for language: java
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ANTLR Master build control POM 3.4 ................ SUCCESS [0.391s]
[INFO] Antlr 3.4 Runtime ................................. SUCCESS [44.632s]
[INFO] ANTLR Grammar Tool v 3.4 .......................... SUCCESS [31.997s]
[INFO] Maven plugin for ANTLR V3.4 ....................... FAILURE
[1:07.349s]
[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: 3:09.551s
[INFO] Finished at: Tue Aug 30 13:46:56 EDT 2011
[INFO] Final Memory: 18M/52M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-plugin-plugin:2.7:descriptor
(default-descriptor) on project antlr3-maven-plugin: Execution
default-descriptor of goal
org.apache.maven.plugins:maven-plugin-plugin:2.7:descriptor failed: syntax
error @[1,9] in
file:/home/student/antlr-3.4/antlr3-maven-plugin/src/main/java/org/antlr/mojo/antlr3/._Antlr3ErrorLog.java
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <goals> -rf :antlr3-maven-plugin
student at antlr:~/antlr-3.4$

I took a look at the file  ._Antlr3ErrorLog.java and it is not all text.

If you need more detail, don't hesitate to ask.

Thanks,

Eric


More information about the antlr-interest mailing list