You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Askar Zaidi <as...@gmail.com> on 2009/12/29 20:10:07 UTC

site.xml and maven site archetype

Hi,

I've created a maven-site-archetype project in Netbeans. I can see that the
site descriptor is site.xml and I can add menu items to build the site
navigation on it. Whatever changes I make to the site.xml are not reflected
in the index.html page of the site. In the IDE I right click on the "Project
Site" node and hit "Generate Site", which generates all the html pages and
places them under target/site folder.

If I add the following to the site.xml

  <body>

    <menu ref="reports" />

  </body>

It does not show the menu in my index.html. Do I have to mention the
site.xml in the pom.xml ? The index.html is supposed to be generated as per
the site.xml right? So why aren't even the Maven logos being displayed that
are by default in the site.xml ?

Thanks-
Askar

Re: site.xml and maven site archetype

Posted by Dennis Lundberg <de...@apache.org>.
In version 2.0.1, and earlier, of the Site Plugin changes in the
sixe.xml was not reflected in the generated site unless you cleaned the
site first.

This was fixed in Site Plugin 2.1.

Askar Zaidi wrote:
> Hi,
> 
> I've created a maven-site-archetype project in Netbeans. I can see that the
> site descriptor is site.xml and I can add menu items to build the site
> navigation on it. Whatever changes I make to the site.xml are not reflected
> in the index.html page of the site. In the IDE I right click on the "Project
> Site" node and hit "Generate Site", which generates all the html pages and
> places them under target/site folder.
> 
> If I add the following to the site.xml
> 
>   <body>
> 
>     <menu ref="reports" />
> 
>   </body>
> 
> It does not show the menu in my index.html. Do I have to mention the
> site.xml in the pom.xml ? The index.html is supposed to be generated as per
> the site.xml right? So why aren't even the Maven logos being displayed that
> are by default in the site.xml ?
> 
> Thanks-
> Askar
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org