title: Is it possible to use maven buildnumber plugin to generate build number without any scm check?
body: <p>Getting the following exception while using maven build number plugin. Is it possible to disable SCM check while using the build number plugin? Can we use this plugin to generate build number on non SCM build?</p>
  
  <h2>Exception while doing the build:</h2>
  
  <pre><code>[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project projectname: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: The scm url cannot be null. -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create (default) on project projectname: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: The scm url cannot be null.
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
      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:534)
      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.PluginExecutionException: Execution default of goal org.codehaus.mojo:buildnumber-maven-plugin:1.0:create failed: The scm url cannot be null.
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:116)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
      ... 19 more
  Caused by: java.lang.NullPointerException: The scm url cannot be null.
      at org.apache.maven.scm.manager.AbstractScmManager.makeScmRepository(AbstractScmManager.java:183)
      at org.codehaus.mojo.build.CreateMojo.getScmRepository(CreateMojo.java:768)
      at org.codehaus.mojo.build.CreateMojo.getRevision(CreateMojo.java:692)
      at org.codehaus.mojo.build.CreateMojo.execute(CreateMojo.java:443)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:107)
      ... 20 more
  </code></pre>
  
  <h2>POM configuration:</h2>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;buildnumber-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
      &lt;executions&gt;
      &lt;execution&gt;
        &lt;phase&gt;validate&lt;/phase&gt;
        &lt;goals&gt;
      &lt;goal&gt;create&lt;/goal&gt;
      &lt;goal&gt;create-timestamp&lt;/goal&gt;
        &lt;/goals&gt;
      &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
      &lt;buildNumberPropertyName&gt;build.number&lt;/buildNumberPropertyName&gt;
      &lt;timestampFormat&gt;yyyy-MM-dd HH:mm:ss.SSS z&lt;/timestampFormat&gt;
      &lt;timestampPropertyName&gt;build.time&lt;/timestampPropertyName&gt;
      &lt;doCheck&gt;false&lt;/doCheck&gt;
      &lt;doUpdate&gt;false&lt;/doUpdate&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.0.2&lt;/version&gt;
      &lt;configuration&gt;
      &lt;source&gt;1.6&lt;/source&gt;
      &lt;target&gt;1.6&lt;/target&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-war-plugin&lt;/artifactId&gt;
      &lt;version&gt;2.1.1&lt;/version&gt;
      &lt;configuration&gt;
      &lt;warname&gt;foodwalaweb&lt;/warname&gt;
      &lt;!--webResources&gt;
          &lt;resource&gt;
          &lt;filtering&gt;false&lt;/filtering&gt;
          &lt;directory&gt;${basedir}/src/main/java&lt;/directory&gt;
          &lt;includes&gt;
          &lt;include&gt;META-INF/persistence.xml&lt;/include&gt;
          &lt;/includes&gt;
          &lt;/resource&gt;
      &lt;/webResources--&gt;
      &lt;archive&gt;
      &lt;manifest&gt;
          &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
          &lt;addDefaultSpecificationEntries&gt;true&lt;/addDefaultSpecificationEntries&gt;
      &lt;/manifest&gt;
      &lt;manifestEntries&gt;
          &lt;Build-Number&gt;${buildNumber}&lt;/Build-Number&gt;
          &lt;Built-Time&gt;${build.time}&lt;/Built-Time&gt;
      &lt;/manifestEntries&gt;
      &lt;/archive&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>