What is your skin packaging type? It should be maven-plugin.

On 6/5/06, Borut Bolčina <[EMAIL PROTECTED]> wrote:
Hello,

I want to have some custom HTML below the left navigation bar in  my
maven project site. I guess I have to make my own skin for that. Here's
what I've done so far:

   1. Created a maven project based on maven-default-skin.
   2. Copied all the resources (css and images) to reflect the structure
      of maven-default-skin
   3. Copied default-site.vm from doxia-site-renderer to
      src/main/resources/META-INF/maven/site.vm (notice different name)
   4. Added one <meta> tag in template to see if the template will be
      picked up.
   5. Changed one value in css to see if change will be picked up.
   6. Created a jar
   7. Installed in my local repo
   8. In my project's site.xml I included this skin with <skin> tag

No luck. No documentation. Please don't redirect me to official site
(http://maven.apache.org/plugins/maven-site-plugin/). I don't want to go
there any more, it's scary.

Can someone please explain the procedure?

Regards,
Borut

the documentation is really bad, this list gives some clues, but still
got me nowhere.

Vance Karimi pravi:
> 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]
>
>


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


Reply via email to