But wouldn't that also show up with the rest of the files when running
site:site?

Anyway I've already added a very simple Ant task that does the trick.

Thanks alot for the help Vance!

Kind regards,
Roland

On 5/25/06, Vance Karimi <[EMAIL PROTECTED]> wrote:

Why not have {Project}/src/main/resources/META-INF/maven/site.vm.
When you package it, it will add the template correctly.

> -----Original Message-----
> From: Roland Bali [mailto:[EMAIL PROTECTED]
> Sent: Thursday, 25 May 2006 6:45 PM
> To: Maven Users List
> Subject: Re: [m2] Using a custom template in a skin?
>
> Ah, thanks Vance. I tried that before but my page still looked messed
up.
> But I found out what caused the whole thing.
>
> The documentation only says to copy a existing skin and the
> default-site.vmto make custom pages. It does not how-ever mention that
> to create a working
> page you also have to copy the CSS and image files inside the same
doxia-
> jar
> that contained the default-site.vm.
>
> Now a follow-up question, is it possible to add the template file to the
> JAR
> using a setting in the POM or do I have to create a Ant script for that?
>
> Kind regards,
> Roland
>
> On 5/25/06, Vance Karimi <[EMAIL PROTECTED]> wrote:
> >
> > Managed to get this to work by putting the template within the skin
jar
> > directory structure META-INF/maven and call it site.vm.
> >
> > > -----Original Message-----
> > > From: Roland Bali [mailto:[EMAIL PROTECTED]
> > > Sent: Thursday, 25 May 2006 5:54 PM
> > > To: Maven Users List
> > > Subject: [m2] Using a custom template in a skin?
> > >
> > > Hi,
> > >
> > > I use a custom Velocity template to generate my site. Up until
> yesterday
> > I
> > > did it the "old fashioned" way by configuring the site plugin with
> > > <templateFile>. Since this stopped working a while ago I tried to
> create
> > > my
> > > own skin. Creating a skin worked fine, exactly as advertised at
> > > http://maven.apache.org/plugins/maven-site-plugin/creating-a-
> > > skin.htmlexcept
> > > for the template thingy.
> > >
> > > Where do I put my custom Velocity template and what do I call it so
> > Maven
> > > can use it together with my bright and shiny new skin? If I use the
> old
> > > way
> > > the page gets all screwed up (which by the way is documented on the
> site
> > > plugin page).
> > >
> > > How come the default template is in the Doxia plugin, shouldn't it
be
> > > located inside a skin?
> > >
> > > Kind regards,
> > > Roland
> >
> > Send instant messages to your online friends
> http://au.messenger.yahoo.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >

Send instant messages to your online friends http://au.messenger.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to