title: Getting Maven Project version within Github Actions
body: <p>I'm trying to fetch the version of my maven project as part of of the deployment process, but I seem to be getting an error on the command's output. Any ideas?</p>
  <p>I have Maven help in my pom.xml plugins.</p>
  <p>Here's the step I'm running:</p>
  <pre><code> - name: Get version
          run: |
            VERSION=$( mvn help:evaluate -Dexpression=project.version -q -DforceStdout )
            echo &quot;::set-output name=version::$VERSION&quot;
          id: get_version
  </code></pre>
  <p>Here's the output (note: I've removed -q here so I can see the output). Note that the project that is defaulted is what I'm looking for. I'm trying to get the v0.1 as my output!</p>
  <pre><code>[INFO] No artifact parameter specified, using 'com.xyz:abc-123:war:v0.1' as project.
  [INFO] 
  null object or invalid expression
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD SUCCESS
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time:  13.569 s
  [INFO] Finished at: 2020-08-29T13:52:22Z
  [INFO] ------------------------------------------------------------------------
  </code></pre>
  <p>I am using the help 3.2.0</p>
  <pre><code>            &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-help-plugin&lt;/artifactId&gt;
                  &lt;version&gt;3.2.0&lt;/version&gt;
              &lt;/plugin&gt;
  </code></pre>