[
http://jira.codehaus.org/browse/MSITE-499?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=249134#action_249134
]
Lukas Theussl commented on MSITE-499:
-------------------------------------
A simple test project would help.
> Links to Inherited site menus appear to be broken
> -------------------------------------------------
>
> Key: MSITE-499
> URL: http://jira.codehaus.org/browse/MSITE-499
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: relative links, site descriptor
> Affects Versions: 2.1.1
> Environment: Maven 2.2.1,
> Reporter: Mykel Alvis
>
> All site descriptors within the several hundred projects I manage are based
> on a "base" value provided by a property in settings.xml.
> My hierarchy is
> <superpom>
> \- CommonParentPOM
> +--Group1ParentPOM
> +--Group2ParentPOM
> \-- Group2project
> My CommonParentPOM has a <url> that is defined as:
> {noformat}
> <url>${default.site.view}/${artifact.namespace}</url>
> {noformat}
> default.site.view is specified in settings.xml
> artifact.namespace is basically
> ${repo.namespace}/${project.artifactId}-${project.version}, where
> repo.namespace is defined in CommonParentPOM as
> <repo.namespace>common</repo.namespace>
> Thus, my final realized URL for CommonParentPOM generally looks like
> "http://documentation.ainom.net/documentation/m2-sites/common/CommonParentPOM-20-SNAPSHOT
> for version 20-SNAPSHOT of CommonParentPOM.
> CommonParentPOM has a menu that I want propagated to all sub-projects, so I
> have a menu in CommonParentPOM's site.xml as
> {noformat}
> <menu name="CM" inherit="bottom">
> <item name="Releases" href="cm_releases.html" />
> </menu>
> {noformat}
> For a subproject whose direct parent is CommonParentPOM and who redfines
> their object.namespace to be xyzabc, in the generated index.html, I get CM as
> an inherited menu with the "Releases" anchor's HREF set to:
> {{home/mykel/Work/site-test/test1/$%257Bdefault.site.view%257D/common/CommonParentPOM-20-SNAPSHOT/cm_releases.html}}
> It appears that the site plugin appended the path to *my filesystem's working
> directory* and then appended the *unrealized* link to the originally deployed
> site file that was inherited. What I expected was a fully realized URL from
> the parent project's site deployment, in this case
> http://documentation.ainom.net/documentation/m2-sites/common/CommonParentPOM-20-SNAPSHOT/cm_releases.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