You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Stephen Cooper (JIRA)" <ji...@codehaus.org> on 2008/10/21 19:08:19 UTC

[jira] Commented: (MSITE-365) Links in child modules are wrong

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

Stephen Cooper commented on MSITE-365:
--------------------------------------

Manually specifying that I should use 2.0-beta-7 seems to have resolved this issue.  This issue seems to only be for 2.0-beta-6.

> Links in child modules are wrong
> --------------------------------
>
>                 Key: MSITE-365
>                 URL: http://jira.codehaus.org/browse/MSITE-365
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>          Components: multi module
>    Affects Versions: 2.0-beta-7
>         Environment: Windows XP
>            Reporter: Stephen Cooper
>             Fix For: 2.0-beta-7
>
>         Attachments: parent-site.zip
>
>
> Links in child modules, as specified in that child site's site.xml, point to the wrong location.  Where they point wrong varies if you're deploying to a file:/// location or a scp:// location, but regardless they're still wrong.
> I've attached a zip file of the results of these steps, but here are the steps to re-create:
> mvn archetype:create -DgroupId=com.test -DartifactId=parent-site -DarchetypeArtifactId=maven-archetype-site-simple
> Change the <site><url> to file://c:/temp/website
> Add a <url> of file:///c/temp/website
> add <menu ref="modules" /><menu ref="reports" /> to site.xml
> Change the commented out line to read: <item name="Parent Xdoc Example" href="xdoc.html"/>
> create an empty file parent-site/src/site/apt/xdoc.apt
> mvn archetype:create -DgroupId=com.test -DartifactId=child-site -DarchetypeArtifactId=maven-archetype-site-simple
> Change the site URL to file:///c:/temp/website/child-site
> in parent-site/child-site/src/site/site.xml, uncomment the Xdoc Example and set the inherit="top" on the menu.
> add <item name="Foo Example" href="foo.html"/>
> create an empty file parent-site/child-site/src/site/apt/xdoc.apt
> create an empty file parent-site/child-site/src/site/apt/foo.apt
> mvn site site:deploy
> Navigate to the child website in a browser
> Notice:  "Parent Xdoc Example" link in child website is wrong.  It points to the child's xdoc file.
> Notice:  the child's "Xdoc Example" and Foo Example don't point to their respective files.  They point to the directory child-site.
> Further:  Replacing the file:/// references with scp://server/path result in even further breakage of the same links.  Now foo.html points to "../../foo.html" instead of "foo.html"

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