Looks like you need to tell the pom where the scm is... I have something like this in my pom.
<project> ... <scm> <connection>scm:svn:http://example.com/artifactId/trunk</connection> <scm> ... </project> Trevor Spackman -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, April 26, 2007 11:39 AM To: Maven Users List Subject: Re : Build number and current date oups ! I tried to add this to the pom : <build> ..... <plugins> <!-- The Maven Build Number plugin for how to use it look in http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html --> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>maven-buildnumber-plugin</artifactId> <version>0.9.4</version> <executions> <execution> <phase>validate</phase> <goals> <goal>create</goal> </goals> </execution> </executions> <configuration> <doCheck>true</doCheck> <doUpdate>true</doUpdate> </configuration> </plugin> </plugins> </build> ... <pluginRepositories> .... <!-- A repository for the Build Number Plugin (not yet accepted in codehaus :-)) --> <pluginRepository> <id>tlc</id> <name>TLC Repository</name> http://commons.ucalgary.ca/pub/m2 </pluginRepository> </pluginRepositories> but unfortunately : here's the log ! [DEBUG] Artifact resolved [DEBUG] Configuring mojo 'org.codehaus.mojo:maven-buildnumber-plugin:0.9.4:create' --> [DEBUG] (s) basedir = C:\works\workspaceM2\TutelecOJV-v1.3 [DEBUG] (s) doCheck = true [DEBUG] (s) doUpdate = true [DEBUG] (f) project = [EMAIL PROTECTED] [DEBUG] -- end configuration -- [INFO] [buildnumber:create {execution: default}] [INFO] Verifying there are no local modifications ... [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] An error has occurred while checking scm status. Embedded error: Can't load the scm provider. The scm url cannot be null. [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred while checking scm status. at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) 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) Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred while checking scm status. at org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:331) at org.codehaus.mojo.buildNumber.BuildNumberMojo.execute(BuildNumberMojo.java:288) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ... 16 more Caused by: org.apache.maven.scm.ScmException: Can't load the scm provider. at org.codehaus.mojo.buildNumber.BuildNumberMojo.getScmRepository(BuildNumberMojo.java:490) at org.codehaus.mojo.buildNumber.BuildNumberMojo.getStatus(BuildNumberMojo.java:384) at org.codehaus.mojo.buildNumber.BuildNumberMojo.checkForLocalModifications(BuildNumberMojo.java:327) ... 19 more Caused by: java.lang.NullPointerException: The scm url cannot be null. at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:122) at org.codehaus.mojo.buildNumber.BuildNumberMojo.getScmRepository(BuildNumberMojo.java:465) ... 21 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 minute [INFO] Finished at: Thu Apr 26 17:17:25 GMT 2007 [INFO] Final Memory: 4M/8M [INFO] ------------------------------------------------------------------------ can someone help me please ? ----- Message d'origine ---- De : Patrick Schneider <[EMAIL PROTECTED]> À : Maven Users List <users@maven.apache.org> Cc : [EMAIL PROTECTED] Envoyé le : Mercredi, 25 Avril 2007, 21h38mn 50s Objet : Re: Build number and current date You might look into the buildnumber plugin: http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/index.html Patrick On 4/25/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > hello, > how can I get the current date (formatted in english) and/or build number > ?? > > i.e : something like a property or a filter or a $mvn.something > > Thanks > Nawfel > > > > > > > ___________________________________________________________________________ > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions > ! > Profitez des connaissances, des opinions et des expériences des > internautes sur Yahoo! Questions/Réponses > http://fr.answers.yahoo.com ___________________________________________________________________________ Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! Profitez des connaissances, des opinions et des expériences des internautes sur Yahoo! Questions/Réponses http://fr.answers.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]