title: Maven issue with buildnumber:hgchangeset properties not propagating to children
body: <p>I have a multi-module project which uses the <a href="http://mojo.codehaus.org/buildnumber-maven-plugin/hgchangeset-mojo.html" rel="nofollow">buildnumber:hgchangeset</a> plugin to generate changeSet and changeSetDate properties, which then get blatted out into the manifest for each module, like so:</p>
  
  <p>pom.xml (parent):</p>
  
  <pre><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;hgchangeset&lt;/goal&gt;
              &lt;/goals&gt;
          &lt;/execution&gt;
      &lt;/executions&gt;
  &lt;/plugin&gt;
      ...
  &lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
      &lt;configuration&gt;
          &lt;archive&gt;
              &lt;manifestEntries&gt;
                  &lt;ProjectVestion&gt;${project.version}&lt;/ProjectVestion&gt;
                  &lt;ChangeSet&gt;${changeSet}&lt;/ChangeSet&gt;
                  &lt;ChangeSetDate&gt;${changeSetDate}&lt;/ChangeSetDate&gt;
              &lt;/manifestEntries&gt;
          &lt;/archive&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>After a bit of experimentation, I discovered that having buildnumber:hgchangeset execute for each module contributed a significant amount of time to the overall build time, presumably because it's forking hg.exe every time it needs to get the changeset ID of the local repo.</p>
  
  <p>I then thought it would be a good idea to set the inherited property to false on the buildnumber plugin, in order to only have it run once for the parent. Unfortunantly, doing this causes the changeSet and changeSetDate properties to not be "visible" to the child modules. </p>
  
  <p>My question is: is it possible to set things up in such a way that buildnumber:hgchangeset runs only once, but the properties that it sets become visible to children modules?</p>
  
  <p>I suppose alternatively I could write things out to a property file, and have each module read it back in, but this does not seem like idiomatic Maven to me.</p>
  
  <p>Thanks in advance,</p>