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/02/21 00:41:29 UTC

[jira] Created: (MSITE-304) site:stage-deploy creates different directory structure than site:stage or site:site

site:stage-deploy creates different directory structure than site:stage or site:site
------------------------------------------------------------------------------------

                 Key: MSITE-304
                 URL: http://jira.codehaus.org/browse/MSITE-304
             Project: Maven 2.x Site Plugin
          Issue Type: Bug
    Affects Versions: 2.0-beta-6
            Reporter: Benjamin Bentmann


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

        

[jira] Closed: (MSITE-304) site:stage-deploy creates different directory structure than site:site

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg closed MSITE-304.
---------------------------------

         Assignee: Dennis Lundberg
       Resolution: Fixed
    Fix Version/s: 2.0-beta-7

Fixed in r666352.
New 2.0-beta-7-SNAPSHOT deployed.
Please verify.

> 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

        

[jira] Commented: (MSITE-304) site:stage-deploy creates different directory structure than site:site

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138214#action_138214 ] 

Dennis Lundberg commented on MSITE-304:
---------------------------------------

Thanks Benjamin,
I'm trying to create an IT for this issue, but I can't get it to work like I want it to :-( my first IT. I'm using the MSITE-265 IT as a template. Will try to make one for MSITE-316 as well.

> 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

        

[jira] Updated: (MSITE-304) site:stage-deploy creates different directory structure than site:site

Posted by "Dennis Lundberg (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dennis Lundberg updated MSITE-304:
----------------------------------

    Summary: site:stage-deploy creates different directory structure than site:site  (was: site:stage-deploy creates different directory structure than site:stage or site:site)

> 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
>
> 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

        

[jira] Commented: (MSITE-304) site:stage-deploy creates different directory structure than site:site

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138217#action_138217 ] 

Benjamin Bentmann commented on MSITE-304:
-----------------------------------------

The issue with the links seems related to MSITE-275, so I attached the demo project there.

> 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

        

[jira] Commented: (MSITE-304) site:stage-deploy creates different directory structure than site:stage or site:site

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_124534 ] 

Benjamin Bentmann commented on MSITE-304:
-----------------------------------------

Forgot to mention: This altered directory structure will cause the inter-module links to fail.

A demo project can be taken from MSITE-180 as provided by Gabriel Falkenberg.

> site:stage-deploy creates different directory structure than site:stage or site:site
> ------------------------------------------------------------------------------------
>
>                 Key: MSITE-304
>                 URL: http://jira.codehaus.org/browse/MSITE-304
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-6
>            Reporter: Benjamin Bentmann
>
> 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

        

[jira] Updated: (MSITE-304) site:stage-deploy creates different directory structure than site:stage or site:site

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MSITE-304?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann updated MSITE-304:
------------------------------------

    Component/s: relative links
                 multi module

> site:stage-deploy creates different directory structure than site:stage or 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
>
> 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

        

[jira] Commented: (MSITE-304) site:stage-deploy creates different directory structure than site:site

Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
    [ 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