[antlr-interest] ANTLR maven build failing

Alan Condit acondit at IPNS.COM
Sun Mar 6 17:08:33 PST 2011


I have been successfully building ANTLR for sometime but yesterday it suddenly started failing. Can anyone shed some light on what is going on.

Below is a stacktrace of the errors I am seeing.

Thanks,
Alan

[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr-runtime:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 107, column 17
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 94, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 192, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr3-maven-plugin:maven-plugin:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 338, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:gunit:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 132, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 141, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 145, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:maven-gunit-plugin:maven-plugin:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 231, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 239, column 21
[WARNING] The expression ${groupId} is deprecated. Please use ${project.groupId} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr3-maven-archetype:maven-archetype:3.3-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 79, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr-master:pom:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 179, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 192, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 250, column 14
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] ANTLR Master build control POM
[INFO] Antlr 3 Runtime
[INFO] ANTLR Grammar Tool
[INFO] Maven plugin for ANTLR V3
[INFO] ANTLR gUnit
[INFO] Maven plugin for gUnit ANTLR V3
[INFO] ANTLR3 Maven Archetype
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Master build control POM 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-master ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:09 at timestamp: 1299459849565
[INFO] 
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master >>>
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-master ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:09 at timestamp: 1299459849573
[INFO] 
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master <<<
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ antlr-master ---
[INFO] Installing /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/pom.xml to /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Antlr 3 Runtime 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-runtime ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:09 at timestamp: 1299459849939
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ antlr-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ antlr-runtime ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ antlr-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ antlr-runtime ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ antlr-runtime ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ antlr-runtime ---
[INFO] 
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime >>>
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-runtime ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:10 at timestamp: 1299459850982
[INFO] 
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime <<<
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime ---
[INFO] 
[INFO] --- maven-install-plugin:2.3.1:install (default-install) @ antlr-runtime ---
[INFO] Installing /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/target/antlr-runtime-3.3.1-SNAPSHOT.jar to /Users/acondit/.m2/repository/org/antlr/antlr-runtime/3.3.1-SNAPSHOT/antlr-runtime-3.3.1-SNAPSHOT.jar
[INFO] Installing /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/pom.xml to /Users/acondit/.m2/repository/org/antlr/antlr-runtime/3.3.1-SNAPSHOT/antlr-runtime-3.3.1-SNAPSHOT.pom
[INFO] Installing /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/target/antlr-runtime-3.3.1-SNAPSHOT-sources.jar to /Users/acondit/.m2/repository/org/antlr/antlr-runtime/3.3.1-SNAPSHOT/antlr-runtime-3.3.1-SNAPSHOT-sources.jar
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Grammar Tool 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:11 at timestamp: 1299459851775
[INFO] 
[INFO] --- antlr-maven-plugin:2.2:generate (default) @ antlr ---
[INFO] grammar [antlr.g] was up-to-date; skipping
[INFO] grammar [codegen.g] was up-to-date; skipping
[INFO] grammar [antlr.print.g] was up-to-date; skipping
[INFO] grammar [assign.types.g] was up-to-date; skipping
[INFO] grammar [buildnfa.g] was up-to-date; skipping
[INFO] grammar [left.recur.rules.g] was up-to-date; skipping
[INFO] grammar [define.g] was up-to-date; skipping
[INFO] 
[INFO] --- antlr3-maven-plugin:3.3:antlr (default) @ antlr ---
[INFO] ANTLR: Processing source directory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3
ANTLR Parser Generator  Version 3.3 Nov 30, 2010 12:46:29
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ActionAnalysis.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3Tree.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ActionTranslator.g is up to date - build skipped
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ antlr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 89 resources
[INFO] Copying 8 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ antlr ---
[INFO] Compiling 28 source files to /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRParser.java:[89,7] duplicate class: org.antlr.grammar.v2.ANTLRParser
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRLexer.java:[78,7] duplicate class: org.antlr.grammar.v2.ANTLRLexer
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRTokenTypes.java:[50,7] duplicate class: org.antlr.grammar.v2.ANTLRTokenTypes
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/java/org/antlr/tool/Grammar.java:[948,15] non-static method createSimpleRuleAST(java.lang.String,org.antlr.tool.GrammarAST,boolean) cannot be referenced from a static context
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1417,8] cannot find symbol
symbol  : variable ruleStartTokenIndex
location: class org.antlr.tool.GrammarAST
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1418,8] cannot find symbol
symbol  : variable ruleStopTokenIndex
location: class org.antlr.tool.GrammarAST
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] 
[INFO] ANTLR Master build control POM .................... SUCCESS [0.741s]
[INFO] Antlr 3 Runtime ................................... SUCCESS [1.803s]
[INFO] ANTLR Grammar Tool ................................ FAILURE [3.893s]
[INFO] Maven plugin for ANTLR V3 ......................... SKIPPED
[INFO] ANTLR gUnit ....................................... SKIPPED
[INFO] Maven plugin for gUnit ANTLR V3 ................... SKIPPED
[INFO] ANTLR3 Maven Archetype ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.337s
[INFO] Finished at: Sun Mar 06 17:04:15 PST 2011
[INFO] Final Memory: 13M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project antlr: Compilation failure: Compilation failure:
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRParser.java:[89,7] duplicate class: org.antlr.grammar.v2.ANTLRParser
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRLexer.java:[78,7] duplicate class: org.antlr.grammar.v2.ANTLRLexer
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRTokenTypes.java:[50,7] duplicate class: org.antlr.grammar.v2.ANTLRTokenTypes
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/java/org/antlr/tool/Grammar.java:[948,15] non-static method createSimpleRuleAST(java.lang.String,org.antlr.tool.GrammarAST,boolean) cannot be referenced from a static context
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1417,8] cannot find symbol
[ERROR] symbol  : variable ruleStartTokenIndex
[ERROR] location: class org.antlr.tool.GrammarAST
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1418,8] cannot find symbol
[ERROR] symbol  : variable ruleStopTokenIndex
[ERROR] location: class org.antlr.tool.GrammarAST
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project antlr: Compilation failure
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :antlr
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr-runtime:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 107, column 17
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 94, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 192, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr3-maven-plugin:maven-plugin:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 338, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:gunit:jar:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 132, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 141, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 145, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ org.antlr:antlr-master:3.3.1-SNAPSHOT, /Users/acondit/.m2/repository/org/antlr/antlr-master/3.3.1-SNAPSHOT/antlr-master-3.3.1-SNAPSHOT.pom, line 250, column 14
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:maven-gunit-plugin:maven-plugin:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-project-info-reports-plugin is missing. @ line 231, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 239, column 21
[WARNING] The expression ${groupId} is deprecated. Please use ${project.groupId} instead.
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr3-maven-archetype:maven-archetype:3.3-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 79, column 21
[WARNING] 
[WARNING] Some problems were encountered while building the effective model for org.antlr:antlr-master:pom:3.3.1-SNAPSHOT
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 179, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 188, column 21
[WARNING] 'build.plugins.plugin.version' for org.codehaus.mojo:findbugs-maven-plugin is missing. @ line 192, column 21
[WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 250, column 14
[WARNING] 
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING] 
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] 
[INFO] ANTLR Master build control POM
[INFO] Antlr 3 Runtime
[INFO] ANTLR Grammar Tool
[INFO] Maven plugin for ANTLR V3
[INFO] ANTLR gUnit
[INFO] Maven plugin for gUnit ANTLR V3
[INFO] ANTLR3 Maven Archetype
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Master build control POM 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-master ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:19 at timestamp: 1299459859339
[INFO] 
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master >>>
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-master ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:19 at timestamp: 1299459859347
[INFO] 
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master <<<
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-master ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building Antlr 3 Runtime 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-runtime ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:19 at timestamp: 1299459859613
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ antlr-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/src/main/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:compile (default-compile) @ antlr-runtime ---
[INFO] Nothing to compile - all classes are up to date
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:testResources (default-testResources) @ antlr-runtime ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/runtime/Java/src/test/resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ antlr-runtime ---
[INFO] Not compiling test sources
[INFO] 
[INFO] --- maven-surefire-plugin:2.7.2:test (default-test) @ antlr-runtime ---
[INFO] Tests are skipped.
[INFO] 
[INFO] --- maven-jar-plugin:2.3.1:jar (default-jar) @ antlr-runtime ---
[INFO] 
[INFO] >>> maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime >>>
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr-runtime ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:20 at timestamp: 1299459860647
[INFO] 
[INFO] <<< maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime <<<
[INFO] 
[INFO] --- maven-source-plugin:2.1.2:jar (attach-sources) @ antlr-runtime ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Grammar Tool 3.3.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- buildnumber-maven-plugin:1.0-beta-2:create (default) @ antlr ---
[INFO] Storing buildNumber: Mar 06, 2011 17:04:21 at timestamp: 1299459861219
[INFO] 
[INFO] --- antlr-maven-plugin:2.2:generate (default) @ antlr ---
[INFO] grammar [antlr.g] was up-to-date; skipping
[INFO] grammar [codegen.g] was up-to-date; skipping
[INFO] grammar [antlr.print.g] was up-to-date; skipping
[INFO] grammar [assign.types.g] was up-to-date; skipping
[INFO] grammar [buildnfa.g] was up-to-date; skipping
[INFO] grammar [left.recur.rules.g] was up-to-date; skipping
[INFO] grammar [define.g] was up-to-date; skipping
[INFO] 
[INFO] --- antlr3-maven-plugin:3.3:antlr (default) @ antlr ---
[INFO] ANTLR: Processing source directory /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3
ANTLR Parser Generator  Version 3.3 Nov 30, 2010 12:46:29
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ActionAnalysis.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ANTLRv3Tree.g is up to date - build skipped
Grammar /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/antlr3/org/antlr/grammar/v3/ActionTranslator.g is up to date - build skipped
[INFO] 
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ antlr ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 89 resources
[INFO] Copying 8 resources
[INFO] 
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ antlr ---
[INFO] Compiling 28 source files to /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRParser.java:[89,7] duplicate class: org.antlr.grammar.v2.ANTLRParser
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRLexer.java:[78,7] duplicate class: org.antlr.grammar.v2.ANTLRLexer
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRTokenTypes.java:[50,7] duplicate class: org.antlr.grammar.v2.ANTLRTokenTypes
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/java/org/antlr/tool/Grammar.java:[948,15] non-static method createSimpleRuleAST(java.lang.String,org.antlr.tool.GrammarAST,boolean) cannot be referenced from a static context
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1417,8] cannot find symbol
symbol  : variable ruleStartTokenIndex
location: class org.antlr.tool.GrammarAST
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1418,8] cannot find symbol
symbol  : variable ruleStopTokenIndex
location: class org.antlr.tool.GrammarAST
[INFO] 6 errors 
[INFO] -------------------------------------------------------------
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Skipping ANTLR Master build control POM
[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 .................... SUCCESS [0.498s]
[INFO] Antlr 3 Runtime ................................... SUCCESS [1.607s]
[INFO] ANTLR Grammar Tool ................................ FAILURE [3.515s]
[INFO] Maven plugin for ANTLR V3 ......................... SKIPPED
[INFO] ANTLR gUnit ....................................... SKIPPED
[INFO] Maven plugin for gUnit ANTLR V3 ................... SKIPPED
[INFO] ANTLR3 Maven Archetype ............................ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.672s
[INFO] Finished at: Sun Mar 06 17:04:24 PST 2011
[INFO] Final Memory: 13M/62M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project antlr: Compilation failure: Compilation failure:
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRParser.java:[89,7] duplicate class: org.antlr.grammar.v2.ANTLRParser
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/org/antlr/grammar/v2/ANTLRLexer.java:[78,7] duplicate class: org.antlr.grammar.v2.ANTLRLexer
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRTokenTypes.java:[50,7] duplicate class: org.antlr.grammar.v2.ANTLRTokenTypes
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/src/main/java/org/antlr/tool/Grammar.java:[948,15] non-static method createSimpleRuleAST(java.lang.String,org.antlr.tool.GrammarAST,boolean) cannot be referenced from a static context
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1417,8] cannot find symbol
[ERROR] symbol  : variable ruleStartTokenIndex
[ERROR] location: class org.antlr.tool.GrammarAST
[ERROR] /Users/acondit/source/antlr3/acondit_localhost/code/antlr/main/tool/target/generated-sources/antlr/ANTLRParser.java:[1418,8] cannot find symbol
[ERROR] symbol  : variable ruleStopTokenIndex
[ERROR] location: class org.antlr.tool.GrammarAST
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project antlr: Compilation failure
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
	at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
	at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
	at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
	at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:656)
	at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
	at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
	at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
	... 19 more
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :antlr



More information about the antlr-interest mailing list