antlr / antlr3

antlr v3 repository (pulled from p4 with history from //depot/code/antlr/antlr3-main
http://www.antlr.org
241 stars 170 forks source link

building ANTLR 3.5.2 #188

Open kavi33 opened 7 years ago

kavi33 commented 7 years ago

I want to manually build ANTLR using the jar files. I followed these steps: Having the latest source helps: I used the mirror at github, downloaded the zip file from the web interface. Cloning gave me errors. cd in to the unzipped directory, then:

mvn -N install mvn -Dmaven.test.skip=true

Its failing with [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] ANTLR 3 Master build control POM ................... SUCCESS [ 0.840 s] [INFO] ANTLR 3 Runtime .................................... SUCCESS [ 4.233 s] [INFO] ANTLR 3 Tool ....................................... SUCCESS [ 17.335 s] [INFO] ANTLR 3 Maven plugin ............................... SUCCESS [ 2.630 s] [INFO] ANTLR 3 gUnit ...................................... SUCCESS [ 6.687 s] [INFO] ANTLR 3 gUnit Maven plugin ......................... SUCCESS [ 0.907 s] [INFO] ANTLR 3 Maven Archetype ............................ SUCCESS [ 1.544 s] [INFO] ANTLR 3 Complete ................................... FAILURE [ 1.016 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 36.908 s [INFO] Finished at: 2017-05-02T10:19:53-07:00 [INFO] Final Memory: 32M/349M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.0:shade (complete-no-st3) on project antlr-complete: Error creating shaded jar: error in opening zip file /home/kavig/.m2/repository/antlr/antlr/2.7.7/antlr-2.7.7-sources.jar -> [Help 1]

Any idea on this issue would be helpful

timeraider4u commented 7 years ago

I am sorry, but I cannot confirm your bug report: Running

git clone https://github.com/antlr/antlr3
cd antlr3
mvn -N install
mvn -Dmaven.test.skip=true

results in

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] ANTLR 3 Master build control POM ................... SUCCESS [  0.376 s]
[INFO] ANTLR 3 Runtime .................................... SUCCESS [ 10.054 s]
[INFO] ANTLR 3 Tool ....................................... SUCCESS [ 19.045 s]
[INFO] ANTLR 3 Maven plugin ............................... SUCCESS [  6.560 s]
[INFO] ANTLR 3 gUnit ...................................... SUCCESS [  4.661 s]
[INFO] ANTLR 3 gUnit Maven plugin ......................... SUCCESS [  0.638 s]
[INFO] ANTLR 3 Maven Archetype ............................ SUCCESS [  3.537 s]
[INFO] ANTLR 3 Complete ................................... SUCCESS [  5.812 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:03 min
[INFO] Finished at: 2017-05-17T20:51:32+02:00
[INFO] Final Memory: 57M/721M
[INFO] ------------------------------------------------------------------------

for me.

You might try to run maven with the -X option to get a more verbose output - http://maven.apache.org/archives/maven-1.x/faq.html#debug-maven

Please also note that ANTLR3 is not supported any more. Try switching to ANTLR4.