maven-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lukas Theussl <ltheu...@apache.org>
Subject Re: Site:stage relativization against a variable URL
Date Tue, 29 Jan 2013 05:24:00 GMT

Lennart Jörelid wrote:
> Good evening, all.
> 
> Today, maven-site-plugin performs its site:stage goal by copying the site
> of a project into a staging directory, and relativizing some URLs. The
> latter part is done by calculating the difference between the current
> project's ${project.distributionManagement.site.url} and
> the ${project.distributionManagement.site.url}  of the topmost parent pom,
> retrieved from the current project.
> 
> The MSITE-699 patch (https://jira.codehaus.org/browse/MSITE-669) currently
> introduces an optional parameter to permit relativizing the URLs in a
> staged site against the ${project.distributionManagement.site.url} of the
> reactor root pom instead. This flexibility simplifies site:stage for
> nonstandard reactor layouts.
> 
> However - I believe it could be more powerful/flexible/desirable to simply
> add an optional parameter to the site:stage goal with the desired root URL
> (i.e. giving the users the ability to supply the effective site:stage root
> URL as a [command line] configuration parameter). This would enable users
> to create staged sites for parts of a reactor with relative ease - which
> would be an improvement to the current site:stage goal.
> 
> It would certainly be a simple patch to supply.
> What do you think?

This would be a more general solution than the current MSITE-699, sounds
reasonable to me.

-Lukas

> 
> --
> +==============================+
> | Bästa hälsningar,
> | [sw. "Best regards"]
> |
> | Lennart Jörelid
> | EAI Architect & Integrator
> |
> | Phone
> | (skype):    jgurueurope
> +==============================+
> 

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


Mime
View raw message