title: Maven - Can I reference profile id in profile definition?
body: <p>I've set profiles in a <code>pom.xml</code>, like shown as follows:  </p>
  
  <pre><code>&lt;profile&gt;
  &lt;id&gt;&lt;em&gt;profileId1&lt;/em&gt;&lt;/id&gt;
      &lt;build&gt;
          &lt;filters&gt;
              &lt;filter&gt;src/main/filters/&lt;em&gt;profileId1&lt;/em&gt;.properties&lt;/filter&gt;
          &lt;/filters&gt;
  // rest of the profile 
  &lt;/profile&gt;
  &lt;profile&gt;
  &lt;id&gt;&lt;em&gt;profileId2&lt;/em&gt;&lt;/id&gt;
      &lt;build&gt;
          &lt;filters&gt;
              &lt;filter&gt;src/main/filters/&lt;em&gt;profileId2&lt;/em&gt;.properties&lt;/filter&gt;
          &lt;/filters&gt;
  // rest of the profile
  &lt;/profile&gt;
  </code></pre>
  
  <p><strong>Question:</strong></p>
  
  <p>Is there any way to extract this piece from all the profiles, so that there is no need to repeat it for every profile (and possibly misspell it)?</p>