[antlr-interest] Maven problems with ANTLR 3.2

William B. Clodius wclodius at los-alamos.net
Tue Dec 15 20:53:56 PST 2009


Before trying the deletion of the scm references in the one pom file I decided to try the -X and -e options. The -e by itself didn't provide any new information. The -X did. The following is produced by the combined -X -e option, but I suspect is identical to the -X by itself. Because the output is long I have elided a long portion I suspect is uninteresting as indicated by ... on a line.

+ Error stacktraces are turned on.
Apache Maven 2.2.1 (r801777; 2009-08-06 13:16:01-0600)
Java version: 1.6.0_17
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.2" arch: "x86_64" Family: "mac"
[DEBUG] Building Maven user-level plugin registry from: '/Users/williamclodius/.m2/plugin-registry.xml'
[DEBUG] Building Maven global-level plugin registry from: '/usr/local/apache-maven/apache-maven-2.2.1/conf/plugin-registry.xml'
[INFO] Scanning for projects...
[DEBUG] Adding managed dependencies for org.antlr:antlr-master
[DEBUG]   junit:junit:jar:4.5:test
[DEBUG]   antlr:antlr:jar:2.7.7:compile
[DEBUG]   org.antlr:stringtemplate:jar:3.2.1:compile
[DEBUG] Adding managed dependencies for org.antlr:antlr-runtime
[DEBUG]   junit:junit:jar:4.5:test
[DEBUG]   antlr:antlr:jar:2.7.7:compile
[DEBUG]   org.antlr:stringtemplate:jar:3.2.1:compile
[DEBUG] Adding managed dependencies for org.antlr:antlr
[DEBUG]   junit:junit:jar:4.5:test
[DEBUG]   antlr:antlr:jar:2.7.7:compile
[DEBUG]   org.antlr:stringtemplate:jar:3.2.1:compile
[DEBUG] Adding managed dependencies for org.antlr:gunit
[DEBUG]   junit:junit:jar:4.5:test
[DEBUG]   antlr:antlr:jar:2.7.7:compile
[DEBUG]   org.antlr:stringtemplate:jar:3.2.1:compile
[INFO] Reactor build order: 
[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
...
[DEBUG]   org.apache.maven.scm:maven-scm-provider-hg:jar:1.2:runtime (selected for runtime)
[DEBUG]     org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (removed - nearer found: 1.4.1)
[DEBUG]   com.google.code.maven-scm-provider-svnjava:maven-scm-provider-svnjava:jar:1.8:runtime (selected for runtime)
[DEBUG]     net.java.dev.jna:jna:jar:3.2.2:runtime (selected for runtime)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.4.1:runtime (removed - nearer found: 1.5.6)
[DEBUG]   org.codehaus.plexus:plexus-utils:jar:1.5.6:runtime (selected for runtime)
[DEBUG]   org.tmatesoft.svnkit:svnkit:jar:1.3.1-1:runtime (selected for runtime)
[DEBUG]     com.trilead:trilead-ssh2:jar:build213-svnkit-1.3-patch:runtime (selected for runtime)
[DEBUG]     org.tmatesoft.sqljet:sqljet:jar:1.0.0-1:runtime (selected for runtime)
[DEBUG] Retrieving parent-POM: org.antlr:antlr-master:pom:3.1.3 for project: org.antlr:antlr-runtime:jar:null from the repository.
[DEBUG] Adding managed dependencies for org.antlr:antlr-runtime
[DEBUG]   junit:junit:jar:4.5:test
[DEBUG]   antlr:antlr:jar:2.7.7:compile
[DEBUG]   org.antlr:stringtemplate:jar:3.2:compile
[DEBUG]   org.antlr:gunit:jar:3.1.3-SNAPSHOT:runtime
[DEBUG]       org.antlr:antlr-runtime:jar:3.1.3:runtime (selected for runtime)
[DEBUG]         org.antlr:stringtemplate:jar:3.2:runtime (selected for runtime)
[DEBUG]           antlr:antlr:jar:2.7.7:runtime (selected for runtime)
[DEBUG]   net.java.dev.jna:jna:jar:3.2.2:runtime (selected for runtime)
[DEBUG]  The following artifacts were filtered out for plugin: org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4 because they're already in the core of Maven:

org.apache.maven:maven-project:jar:2.0.6:runtime
org.apache.maven:maven-settings:jar:2.0.6:runtime
org.apache.maven:maven-core:jar:2.0.6:runtime
org.apache.maven:maven-plugin-api:jar:2.0.6:runtime
org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:runtime

These will use the artifact files already in the core ClassRealm instead, to allow them to be included in PluginDescriptor.getArtifacts().


[DEBUG] Configuring mojo 'org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create' -->
[DEBUG]   (s) buildNumberPropertiesFileLocation = /usr/local/antlr-3.2/buildNumber.properties
[DEBUG]   (f) buildNumberPropertyName = buildNumber
[DEBUG]   (s) doCheck = false
[DEBUG]   (s) doUpdate = false
[DEBUG]   (f) format = {0,date,MMM dd, yyyy} {0,time,kk:mm:ss}
[DEBUG]   (f) getRevisionOnlyOnce = false
[DEBUG]   (f) items = [timestamp]
[DEBUG]   (f) project = MavenProject: org.antlr:antlr-master:3.2 @ /usr/local/antlr-3.2/pom.xml
[DEBUG]   (f) reactorProjects = [MavenProject: org.antlr:antlr-master:3.2 @ /usr/local/antlr-3.2/pom.xml, MavenProject: org.antlr:antlr-runtime:3.2 @ /usr/local/antlr-3.2/runtime/Java/pom.xml, MavenProject: org.antlr:antlr:3.2 @ /usr/local/antlr-3.2/tool/pom.xml, MavenProject: org.antlr:antlr3-maven-plugin:3.2 @ /usr/local/antlr-3.2/antlr3-maven-plugin/pom.xml, MavenProject: org.antlr:gunit:3.2 @ /usr/local/antlr-3.2/gunit/pom.xml, MavenProject: org.antlr:maven-gunit-plugin:3.2 @ /usr/local/antlr-3.2/gunit-maven-plugin/pom.xml]
[DEBUG]   (f) scmBranchPropertyName = scmBranch
[DEBUG]   (s) scmDirectory = /usr/local/antlr-3.2
[DEBUG]   (f) session = org.apache.maven.execution.MavenSession at 609f3e95
[DEBUG]   (f) timestampPropertyName = timestamp
[DEBUG]   (f) useLastCommittedRevision = false
[DEBUG] -- end configuration --
[INFO] [buildnumber:create {execution: default}]
[INFO] Storing buildNumber: Dec 15, 2009 21:43:52 at timestamp: 1260938632003
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The scm url cannot be null.
[INFO] ------------------------------------------------------------------------
[DEBUG] Trace
java.lang.NullPointerException: The scm url cannot be null.
        at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:181)
        at org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:722)
        at org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:593)
        at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:452)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
        at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
        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.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 8 minutes 9 seconds
[INFO] Finished at: Tue Dec 15 21:43:52 MST 2009
[INFO] Final Memory: 20M/264M
[INFO] ------------------------------------------------------------------------

On Dec 15, 2009, at 2:28 PM, Jim Idle wrote:

> Also, build using the -X and/or -e options and see what the messages tell you about what it is doing at the time.
> 
> Jim
> 
>> -----Original Message-----
>> From: antlr-interest-bounces at antlr.org [mailto:antlr-interest-
>> bounces at antlr.org] On Behalf Of William B. Clodius
>> Sent: Monday, December 14, 2009 9:55 PM
>> To: antlr-interest at antlr.org
>> Subject: [antlr-interest] Maven problems with ANTLR 3.2
>> 
>> I am trying to build ANTLR 3.2 with maven 2.2.1 on Mac OS X 10.6.2 and
>> am having problems with what I believe is a null pointer exception. The
>> test below is the result of trying to rerun maven after my first build.
>> Any suggestions?
>> 
>> bash-3.2$ mvn -Dmaven.test.skip=true | more
>> [INFO] Scanning for projects...
>> [INFO] Reactor build order:
>> [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] ----------------------------------------------------------------
>> --------
>> [INFO] Building ANTLR Master build control POM
>> [INFO]    task-segment: [install]
>> [INFO] ----------------------------------------------------------------
>> --------
>> [INFO] [buildnumber:create {execution: default}]
>> [INFO] Storing buildNumber: Dec 14, 2009 22:38:09 at timestamp:
>> 1260855489961
>> [INFO] ----------------------------------------------------------------
>> --------
>> [ERROR] FATAL ERROR
>> [INFO] ----------------------------------------------------------------
>> --------
>> [INFO] The scm url cannot be null.
>> [INFO] ----------------------------------------------------------------
>> --------
>> [INFO] Trace
>> java.lang.NullPointerException: The scm url cannot be null.
>>        at
>> org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(Abstr
>> actScmManager.java:181)
>>        at
>> org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:722
>> )
>>        at
>> org.codehaus.mojo.build.CreateMojo.getScmBranch(CreateMojo.java:593)
>>        at
>> org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:452)
>>        at
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginM
>> anager.java:490)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defaul
>> tLifecycleExecutor.java:694)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLife
>> cycle(DefaultLifecycleExecutor.java:556)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Default
>> LifecycleExecutor.java:535)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandl
>> eFailures(DefaultLifecycleExecutor.java:387)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
>> (DefaultLifecycleExecutor.java:348)
>>        at
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLife
>> cycleExecutor.java:180)
>>        at
>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>>        at
>> org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
>>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>        at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja
>> va:39)
>>        at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso
>> rImpl.java:25)
>>        at java.lang.reflect.Method.invoke(Method.java:597)
>>        at
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>        at
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>> [INFO] ----------------------------------------------------------------
>> --------
>> [INFO] Total time: 2 seconds
>> [INFO] Finished at: Mon Dec 14 22:38:09 MST 2009
>> [INFO] Final Memory: 20M/264M
>> [INFO] ----------------------------------------------------------------
>> --------
>> 
>> 
>> 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