title: Maven project + maven-site-plugin not working
body: <p>I'm currently working with <strong>maven-site-plugin</strong> using Maven 3. </p>
  
  <p>The plugin is generating all the report as expected but due to my project layout (shown below), the main site shown does not show the reports. Can anyone advise how we can have the content shared or add links to show how links can be put in site.xml to show the content. Thanks</p>
  
  <p>The site\site.xml file looks like this. </p>
  
  <pre><code>&lt;project name="MyProject"&gt;
      &lt;body&gt;`enter code here`
          &lt;links&gt;
              &lt;item name="My Site" href="http://hp.com" /&gt; 
          &lt;/links&gt;
          &lt;menu name="Projects" inherit="top"&gt; 
              &lt;item name="Description and Usage" href="index.html"/&gt;
              &lt;item name="Goals" href="plugin-info.html"/&gt;
              &lt;item name="Usage" href="usage.html"/&gt;
              &lt;item name="FAQ" href="faq.html"/&gt;          
          &lt;/menu&gt;
          &lt;menu ref="reports"/&gt;       
      &lt;/body&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Running the site is not a problem, the site appears but none of the links are working and the reports are not visible. I assume this is because my project setup is not standard. I have the following setup</p>
  
  <pre><code>PARENT_PROJECT
  -pom.xml (this is where maven-site-plugin is defined and used)
  -src
     site
         site.xml
  -target (all reports are here inc a index.html)
  ---x EAR Project
       pom.xml
       target (all reports are here inc a index.html)
  ---x WEBAPP Project
       pom.xml
       target (all reports are here inc a index.html)
  ---x JAR Project
       pom.xml
       target (all reports are here inc a index.html)
  </code></pre>
  
  <p>For some unknown reason, when I run site:run and enter "localhost:8080", the index.html from the EAR\target\index.html is appearing and not the PARENT_PROJECT\target\index.html file?</p>
  
  <p>Note that mvn:site is run from the PARENT_PROJECT</p>
  
  <p>Changed the POM to include</p>
  
  <pre><code>&lt;site&gt;
      &lt;id&gt;nexus&lt;/id&gt;
      &lt;name&gt;site&lt;/name&gt;
      &lt;url&gt;http://localhost:8080&lt;/url&gt;
  &lt;/site&gt;
  </code></pre>
  
  <p>As its a multi project, running site:stage now as suggested here <a href="http://maven.apache.org/plugins/maven-site-plugin/faq.html" rel="nofollow">http://maven.apache.org/plugins/maven-site-plugin/faq.html</a> but noticed that I cannot run the project as maven states that "What "mvn site" will do for you, in a multi-project build, is to run "mvn site" for the parent and all its modules individually. The links between parent and child will not work here. They will however work when you deploy the site."</p>