title: Maven: How to reference a developer's e-mail in POM file?
body: <p>As known, if I have attributes as such in a POM file:</p>
  
  <pre><code>&lt;project ...&gt;
      ...
      &lt;groupId&gt;com.bosch&lt;/groupId&gt;
      &lt;artifactId&gt;jenkins-ci&lt;/artifactId&gt;
      &lt;version&gt;0.0.1&lt;/version&gt;
      &lt;packaging&gt;pom&lt;/packaging&gt;
      ...
      &lt;organization&gt;
          &lt;name&gt;Organization Name&lt;/name&gt;
      &lt;/organization&gt;
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p>... I can reference them with <code>${project.artifactId}</code>, <code>${project.organization.name}</code> and so on.</p>
  
  <p>But how can I reference the ids or e-mails of developers within the tags below?</p>
  
  <pre><code>&lt;project ...&gt;
      ...
      &lt;developers&gt;
          &lt;developer&gt;
              &lt;id&gt;dev1&lt;/id&gt;
              &lt;name&gt;Developer 1&lt;/name&gt;
              &lt;email&gt;developer1@email.com&lt;/email&gt;
          &lt;/developer&gt;
          &lt;developer&gt;
              &lt;id&gt;dev2&lt;/id&gt;
              &lt;name&gt;Developer 2&lt;/name&gt;
              &lt;email&gt;developer2@email.com&lt;/email&gt;
          &lt;/developer&gt;
      &lt;/developers&gt;
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>EDIT:</strong> The answer from <em>@P-a Bäckström</em> seems the correct one, but for me it works only when I use <code>help:evaluate</code>.</p>
  
  <p>Taking the following example:</p>
  
  <pre><code>&lt;project
      ...
      &lt;properties&gt;
          &lt;testId&gt;${project.developers[0].id}&lt;/testId&gt;
      &lt;/properties&gt;
      ...
      &lt;developers&gt;
          &lt;developer&gt;
              &lt;id&gt;dev1&lt;/id&gt;
              &lt;name&gt;Developer 1&lt;/name&gt;
              &lt;email&gt;developer1@email.com&lt;/email&gt;
          &lt;/developer&gt;
          &lt;developer&gt;
              &lt;id&gt;dev2&lt;/id&gt;
              &lt;name&gt;Developer 2&lt;/name&gt;
              &lt;email&gt;developer2@email.com&lt;/email&gt;
          &lt;/developer&gt;
      &lt;/developers&gt;
      ...
      &lt;organization&gt;
          &lt;name&gt;${project.developers[0].id}&lt;/name&gt;
      &lt;/organization&gt;
      ...
  &lt;/project&gt;
  </code></pre>
  
  <p>Then the following works...</p>
  
  <pre><code>C:\workspaces\rafael_workspace\jenkins-parent-pom&gt;mvn help:evaluate
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building Jenkins POM 0.0.1
  [INFO] ------------------------------------------------------------------------
  [INFO]
  [INFO] --- maven-help-plugin:2.1.1:evaluate (default-cli) @ jenkins-ci ---
  [INFO] No artifact parameter specified, using 'com.test:jenkins-ci:pom:0.0.1' as project.
  [INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
  ${project.developers[0].id}
  [INFO]
  dev1
  [INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
  ${testId}
  [INFO]
  dev1
  [INFO] Enter the Maven expression i.e. ${project.groupId} or 0 to exit?:
  ${project.organization.name}
  [INFO]
  dev1
  </code></pre>
  
  <p>However, when I use <code>C:\workspaces\rafael_workspace\jenkins-parent-pom&gt;mvn help:effective-pom</code> to resolve the effective POM, those references are unchanged. The effective POM still shows me the <code>${project.developers[0].id}</code> instead of the actual value <code>dev1</code>.</p>