[ 
https://jira.codehaus.org/browse/MSITE-669?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=315831#comment-315831
 ] 

Lukas Theussl commented on MSITE-669:
-------------------------------------

There should be no requirement wrt the relativePath element (however, in 
practice I am not so sure anymore...). One problem I see is that some of your 
modules inherit from parents that are not related to the rest of the project. 
Eg the codestyle module has no parent, therefore its site gets staged into the 
current staging dir, ie into the same dir as the nazgul-tools-reactor if the 
build is started from there. The same is true for eg 
nazgul-tools-validation-api which inherits from nazgul-tools-parent which has 
no parent, ie its site is not related to the reactor site. The relative path 
between nazgul-tools-validation-api and nazgul-tools-parent is computed as 
"../../" and this is appended to the base staging url of the reactor build.... 
giving complete nonsense. I am rather confused by your project layout still but 
IIUC this should be a problem specific to staging. Can you try to do a local 
file deploy instead (ie indicate file:// urls as distMngmnt site urls and run 
site:deploy). If this works it should also work when the site is deployed 
remotely.
                
> site:stage creates incorrect structure when module paths contains sets of 
> "../"
> -------------------------------------------------------------------------------
>
>                 Key: MSITE-669
>                 URL: https://jira.codehaus.org/browse/MSITE-669
>             Project: Maven 2.x and 3.x Site Plugin
>          Issue Type: Bug
>          Components: multi module, relative links, site:stage(-deploy)
>    Affects Versions: 3.1, 3.2
>            Reporter: Lennart Jörelid
>            Assignee: Lukas Theussl
>         Attachments: sample.zip
>
>
> Given the module definitions given below, the site:stage goal produces sets 
> of maps relative to the staging directory - i.e. outside of the target 
> directory.
> {code:xml} 
> <modules>
>   <module>../../validation/validation-api</module>
>   <module>../../validation/validation-aspect</module>
>   <module>../parent</module>
> </modules>
> {code}
> The staged site should be fully included within the staging directory. It 
> would appear that relativization of links for site:stage should take special 
> links into consideration.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira


Reply via email to