Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-499

Links to Inherited site menus appear to be broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.1.1
    • None
    • None
    • Maven 2.2.1,

    Description

      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:

      	<url>${default.site.view}/${artifact.namespace}</url>
      

      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

      		<menu name="CM" inherit="bottom">
      			<item name="Releases" href="cm_releases.html" />
      		</menu>
      

      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

      Attachments

        Activity

          People

            ltheussl Lukas Theussl
            mykelalvis Mykel Alvis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: