Ryan Connolly wrote:
> Hello:
>      I am creating a site skin for my company's project sites and have
> written a MOJO that will generate the site logo based on the project
> name that runs at the pre-site lifecycle phase.  My question is this:
> Could my plugin goal somehow be packaged along with the skin so that
> it can be called automatically for any project that uses this skin?
> Currently I have the skin in one project and the single mojo plug-in
> in another project.  My hopes are to have them somehow combined as to
> not have to maintain 2 projects that are essentially part of the same
> 'project'.

If I understand your setup correctly, you should not integrate your
plugin into the skin. Instead you should keep them separate as they do
different things.

The skin is a bunch of files that defines the look and feel of your
site, packaged together in a jar-file. These files can include a logo,
or in your case you can leave that out of your skin. Just reference the
not-yet-existing logo in your style sheets.

Then you can have project X, a project that wants your skin and a custom
generated logo. That project will reference your skin in its site.xml.
That project will also include an execution of your logo mojo in its
pom.xml, that will create the logo that is referenced in your skin. Just
make sure that the logo mojo outputs the logo into the correct directory
used for site resources, /src/site/resources/... by default.

> 
> Any help and/or suggestions would be greatly appreciated.
> 
> Thanks,
> -Ryan
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> 


-- 
Dennis Lundberg

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to