title: Maven - from where is "Release-Name" field data retrieved while creating MANIFEST.MF
body: <p>We are using Jenkins maven plugin for building and deploying war applications. In the jenkinsfile we have the command (I removed the list of profiles for the sake of simplicity):</p>
  <pre><code>mvn release:clean release:prepare -P&lt;profiles&gt; -U -DautoVersionSubmodules=&quot;true&quot; -Darguments=&quot;-T 1C -DskipTests=true&quot; -V --batch-mode --errors
  </code></pre>
  <p>The built war artifact has MANIFEST.MF file with field Release-Name set to main.</p>
  <blockquote>
  <p>Release-Name: main</p>
  </blockquote>
  <p>In the parent pom.xml there are some extra settings for customize MANIFEST.MF but it seems to me that &quot;Release-Name&quot; is added by default because it is not listed below:</p>
  <pre><code>&lt;manifestEntries&gt;
     &lt;Version&gt;${project.version}&lt;/Version&gt;
     &lt;Revision-Number&gt;${buildNumber}&lt;/Revision-Number&gt;
     &lt;Branch&gt;${GIT_BRANCH}&lt;/Branch&gt;
     &lt;Local-Branch&gt;${scmBranch}&lt;/Local-Branch&gt;
  &lt;/manifestEntries&gt;
  </code></pre>
  <p>So I tried to look into the maven release plugin source code from this <a href="https://github.com/apache/maven-release" rel="nofollow noreferrer">repository</a> but I couldn't find anything helpful.
  Then the main question is how the field &quot;Release-Name&quot; is filled because I'd like to change it into some more meaningful value.</p>