[antlr-interest] Réf. : Re: Maven problems with ANTLR 3.2

loic.lefevre at bnpparibas.com loic.lefevre at bnpparibas.com
Wed Dec 16 05:40:12 PST 2009


Please read:

http://jira.codehaus.org/browse/MOJO-1014

That in mind, I've added the following lines in the antlr-3.2/pom.xml  at 
line 35:

  <scm>
 
<developerConnection>scm:svn:http://fisheye2.cenqua.com/browse/antlr</developerConnection>
  </scm>

Now it works (at least, the tests are currently running).

Regards,
Loïc




Internet 
wclodius at los-alamos.net
Envoyé par : antlr-interest-bounces at antlr.org
16/12/2009 06:22

Pour
antlr-interest at antlr.org
cc

Objet
Re: [antlr-interest] Maven problems with ANTLR 3.2






Jim:

FWIW

1. Commenting out and deleting the scm lines in 
antler-3.2/runtime/Java/pom.xml yields the same result

2. antlr-3.2/BUILD.txt has the lines
"The main development branch of ANTLR is stored within the Perforce SCM 
at:

   //depot/code/antlr/main/..."
could the problem be in the Perforce SCM?

3. Those are the only references to an scm I can find in the antlr-3.2 
directory tree

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

> I am not sure why this would be different on your Mac. It is possible 
though that I did not specify a specific version of the SCM plugin and so 
your build has picked some newly released version which does not like the 
fact that the SCM is seemingly null. However the only place where I 
specified the SCM was in the Java runtime pom, then I abandoned the scm 
idea because the perforce scm plugin is terrible and full of bugs. So, you 
could just remove the scm reference from that pom.xml file and see if it 
makes a difference. However, the scm isn't null in that reference so I 
don't know why you would get this and nobody else does.
> 
> 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
> 


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 
Do not print this message unless it is necessary,
consider the environment.

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.
N'imprimez ce message que si necessaire,
pensez a l'environnement.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20091216/074e0292/attachment.html 


More information about the antlr-interest mailing list