title: How can I get the maven-site-plugin to resolve the parent pom.xml of my multimodule Maven project?
body: <p>I have a garden variety Maven project.  It has several modules in it.  Thus the root <code>pom.xml</code> serves as both parent and aggregator in grand Maven fashion.</p>
  
  <p>This project builds and installs fine.</p>
  
  <p>The root <code>pom.xml</code> inherits from a corporate <code>pom.xml</code> with a stanza like this:</p>
  
  <pre><code>&lt;parent&gt;
    &lt;groupId&gt;foo&lt;/groupId&gt;
    &lt;artifactId&gt;bar&lt;/artifactId&gt;
    &lt;version&gt;16&lt;/version&gt; &lt;!-- look, Ma, no SNAPSHOT --&gt;
  &lt;/parent&gt;
  </code></pre>
  
  <p>When I run <code>mvn site</code> against this root <code>pom.xml</code>, the <code>maven-site-plugin</code> version 3.2 reports that it cannot resolve the parent.</p>
  
  <p>The parent is of course present in my local repository and in my local Nexus.  No other phase of the lifecycle has any trouble resolving the parent.</p>
  
  <p>Others have <a href="http://mail-archives.apache.org/mod_mbox/maven-users/201211.mbox/%3CDUB104-W20C0148497A79BC339A494A6600@phx.gbl%3E" rel="nofollow noreferrer">reported</a> this issue.  There is also <a href="https://stackoverflow.com/questions/11260717/non-resolvable-parent-pom-when-building-maven-3-project-site">another StackOverflow question on this subject</a> but it was not immediately apparent that its issue was the exact same as mine.</p>
  
  <p>Adding <code>&lt;relativePath/&gt;</code> to the <code>&lt;parent&gt;</code> stanza above (my first thought) did not alter the behavior in any way.</p>
  
  <p>How can I get the <code>maven-site-plugin</code> to resolve the parent <code>pom.xml</code>?</p>