title: maven jar/war plugin to add git hash commit id
body: <p>I wanted to add the Git commit id in the manifest.mf file for jar.</p>
  
  <p>I have done the below configuration in pom xml plugin configuration,</p>
  
  <p>I am able to get the git revision when  i issue the maven goal
  <code>clean buildnumber:create install</code></p>
  
  <p>Is it possible to get the git revision without issuing <code>buildnumber:create</code> and through plugin configuration?</p>
  
  <p>pom.xml</p>
  
  <pre><code> &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
      &lt;version&gt;${maven.jarplugin.version}&lt;/version&gt;
      &lt;configuration&gt;
          &lt;archive&gt;
              &lt;manifest&gt;    
                  &lt;addDefaultImplementationEntries&gt;true&lt;/addDefaultImplementationEntries&gt;
                  &lt;addDefaultSpecificationEntries&gt;false&lt;/addDefaultSpecificationEntries&gt;
              &lt;/manifest&gt;
              &lt;manifestEntries&gt;
                  &lt;Implementation-Build&gt;${buildNumber}&lt;/Implementation-Build&gt;
              &lt;/manifestEntries&gt;
          &lt;/archive&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  
  &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.4&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;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
      &lt;configuration&gt;
          &lt;doCheck&gt;true&lt;/doCheck&gt;
          &lt;doUpdate&gt;true&lt;/doUpdate&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>