You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Mike Hanafey (JIRA)" <ji...@codehaus.org> on 2008/03/27 15:24:58 UTC

[jira] Commented: (MSITE-229) Links in site.xml get translated to ../../../

    [ http://jira.codehaus.org/browse/MSITE-229?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=128879#action_128879 ] 

Mike Hanafey commented on MSITE-229:
------------------------------------

I ran into the "URLs containing uninterpolated ${}" digression in John's comment 2 hops above. In my case it was a failure to expand a property defined in settings.xml, and in this case it is not clear why this expansion is not done when the child site is generated by itself. Before reading this I had opened [http://jira.codehaus.org/browse/MSITE-310]. 

Now I see it is a known issue, but it does seem like a reasonable idea to put the deployment location in settings.xml, and there should be no issue with the context this property needs to be resolved from.

> Links in site.xml get translated to ../../../
> ---------------------------------------------
>
>                 Key: MSITE-229
>                 URL: http://jira.codehaus.org/browse/MSITE-229
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: relative links
>    Affects Versions: 2.0-beta-5
>         Environment: Linux FC6  Sun Java (build 1.5.0_10-b03, mixed mode, sharing)
>            Reporter: Mykel Alvis
>            Assignee: Dennis Lundberg
>            Priority: Minor
>         Attachments: site.xml
>
>
> In Site.xml  for a project (that has a parent POM)
>     <links>
>       <item name="SIRD Site" href="http://sirdsite.dsths.ad.dstcorp.net/" />
>       <item name="Apache" href="http://www.apache.org/" />
>       <item name="Maven 2" href="http://maven.apache.org/maven2/"/>
>     </links>
> Gets rendered as 
>   
>           <div class="xright">      <a href="../../../">SIRD Site</a>
>           |
>           <a href="http://www.apache.org/">Apache</a>
>           |
>           <a href="http://maven.apache.org/maven2/">Maven 2</a>
>   
> " http://sirdsite.dsths.ad.dstcorp.net/"  !=   "../../.."

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