You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2008/06/11 17:31:13 UTC
[jira] Commented: (MSITE-304) site:stage-deploy creates different
directory structure than site:site
[ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138209#action_138209 ]
Benjamin Bentmann commented on MSITE-304:
-----------------------------------------
Looks generally good, the inter-module links in the navibar on the left are functional.
However there is still a discrepancy between the staging goals and a regular site deploy. E.g. compared against a {{site-deploy}} to localhost, I observe the following differences to the staged site:
{code:title=index.html of sub-module, correctly points to parent}
<a href="../" id="bannerRight">
<img src="../images/logo.png" alt="foo" />
{code}
{code:title=index.html of staged sub-module, incorrectly points to somewhere}
<a href="..\..\..\..\..\..\..\..\..\..\..\sub-module" id="bannerRight">
<img src="../../sub-module" alt="foo" />
{code}
Also note that the href is using backslashes which is invalid for URLs. I will try to fill in a new issue with some test project shortly.
> site:stage-deploy creates different directory structure than site:site
> ----------------------------------------------------------------------
>
> Key: MSITE-304
> URL: http://jira.codehaus.org/browse/MSITE-304
> Project: Maven 2.x Site Plugin
> Issue Type: Bug
> Components: multi module, relative links
> Affects Versions: 2.0-beta-6
> Reporter: Benjamin Bentmann
> Assignee: Dennis Lundberg
> Fix For: 2.0-beta-7
>
>
> Given a parent and a child module, the regular site directory structure is
> {noformat}
> <site-root>/
> child/
> {noformat}
> which is expected by all the inter-module links.
> In contrast, site:stage-deploy will create
> {noformat}
> <site-root>/
> staging/
> child/
> staging/
> {noformat}
> instead of
> {noformat}
> <site-root>/
> staging/
> child/
> {noformat}
> This is due to the configuration of the mojo paramter stagingSiteURL which is constructed by the site URL of the *current* project and appending a subdir like "staging". This is only usuable for the parent project, for child modules the subdir "staging" needs to be inserted before the subdir for the child module is appended.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira