title: build helper plugin not parsing project version
body: <p>I have a project where I have a need to break the version number down and access it's component pieces when building a manifest file.  After doing some searching around I found the build-helper-maven-plugin and figured my problem was solved.  I added the plugin to the master POM, it's shown below.</p>
  
  <pre><code>  &lt;plugin&gt;
      &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
      &lt;artifactId&gt;build-helper-maven-plugin&lt;/artifactId&gt;
      &lt;version&gt;1.7&lt;/version&gt;
      &lt;executions&gt;
        &lt;execution&gt;
          &lt;phase&gt;validate&lt;/phase&gt;
          &lt;id&gt;parse-version&lt;/id&gt;
          &lt;goals&gt;
            &lt;goal&gt;parse-version&lt;/goal&gt;
          &lt;/goals&gt;
          &lt;configuration&gt;
              &lt;propertyPrefix&gt;parsedVersion&lt;/propertyPrefix&gt;
          &lt;/configuration&gt;
        &lt;/execution&gt;
      &lt;/executions&gt;
    &lt;/plugin&gt;
  </code></pre>
  
  <p>The project version at this point in time is 3.0.0-SNAPSHOT.  I wanted to see all the pieces (although in the final version I may not use them all) so I added these lines to my manifest file.</p>
  
  <pre><code>&lt;value name="majorVersion"&gt;${parsedVersion.majorVersion}&lt;/value&gt;
  
  &lt;value name="minorVersion"&gt;{$parsedVersion.minorVersion}&lt;/value&gt;
  
  &lt;value name="incrementalVersion"&gt;${parsedVersion.incrementalVersion}&lt;/value&gt;
  
  &lt;value name="versionQualifier"&gt;${parsedVersion.qualifier}&lt;/value&gt;
  
  &lt;value name="parsedBuildNumber"&gt;${parsedVersion.buildNumber}&lt;/value&gt;
  </code></pre>
  
  <p>After building I get this.</p>
  
  <pre><code>&lt;value name="majorVersion"&gt;0&lt;/value&gt;
  
  &lt;value name="minorVersion"&gt;{$parsedVersion.minorVersion}&lt;/value&gt;
  
  &lt;value name="incrementalVersion"&gt;0&lt;/value&gt;
  
  &lt;value name="versionQualifier"&gt;3.00.0-SNAPSHOT&lt;/value&gt;
  
  &lt;value name="parsedBuildNumber"&gt;0&lt;/value&gt;
  </code></pre>
  
  <p>The value tag is actually an XML tag and there is a closing value tag in the manifest file, I had to remove them since they were messing up the display.</p>
  
  <p>So the incremental version appears to be correct, although I'm not all that confident given that the major version isn't correct, it found no minor version, and the qualifier comes back as the entire version number, rather than just the SNAPSHOT piece i had expected.  I can see where a build number of zero would be correct since we don't have what Maven considers a build number.</p>
  
  <p>Any ideas on why the version number doesn't seem to be parsing?  Have I implemented this plugin incorrectly?</p>
  
  <p>thanks
  steve</p>