title: Jenkins and maven-buildnumber-plugin
body: <p>I am using <a href="http://mojo.codehaus.org/buildnumber-maven-plugin/" rel="nofollow">maven-buildnumber-plugin</a> version 1.0-beta-4. This works fine on a project checked out of Subversion, but fails in Jenkins.</p>
  
  <p>I assume this problem is due to Jenkins somehow removing the <code>.svn</code> folders.</p>
  
  <p>I assumed wrong. Here is the error I got:</p>
  
  <pre><code>maven builder waiting
  mavenExecutionResult exceptions not empty
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4:create (default) on project swift-core: Cannot get the revision information from the scm repository : 
  Error!
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
      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.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
      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.launchStandard(Launcher.java:329)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
      at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:146)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:124)
      at hudson.maven.Maven3Builder.call(Maven3Builder.java:71)
      at hudson.remoting.UserRequest.perform(UserRequest.java:114)
      at hudson.remoting.UserRequest.perform(UserRequest.java:48)
      at hudson.remoting.Request$2.run(Request.java:270)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      at java.util.concurrent.FutureTask.run(FutureTask.java:138)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:619)
  Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot get the revision information from the scm repository : 
  Error!
      at org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:673)
      at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:431)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 27 more
  Caused by: org.apache.maven.scm.ScmException: Error!
      at org.codehaus.mojo.build.CreateMojo.checkResult(CreateMojo.java:753)
      at org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:648)
      ... 30 more
  </code></pre>
  
  <p>I overlooked this:</p>
  
  <pre><code>Provider message:
  The svn command failed.
  Command output:
  /bin/sh: svn: command not found
  
  mojoFailed org.codehaus.mojo:buildnumber-maven-plugin:1.0-beta-4(default)
  </code></pre>
  
  <p>There is no <code>svn</code> client installed on the machine, that is the true source of trouble.</p>