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

site:stage for multimodule project creates wrong links

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-beta-6
    • 2.0
    • multi module
    • None
    • Debian testing,maven 2.0.8

    Description

      For multimodule project when I exec 'mvn site:stage -DstagingDirectory=MY_STAGING_DIR', created links in index.html are hardcoded with path to project dir :

      <a href="../../mnt/data/projects/vpda/current/workspace/ws/../../../../../../localhost/home/vpda/site/org.vpda/0.02.01-SNAPSHOT">vpda-common</a>

      When I exec mvn site", then index.html in target/site is correctly generated.

      There is workaround : use site-deploy and specify some property that is resolved in pom.xml as your deploy site url :
      mvn site-deploy -Dvpda.deployUrlSite=file:///home/rki/tmp/XXX

      My site.xml :
      <project name="vpda-site">
      <bannerLeft>
      <name>View providers driven applications</name>
      <src>images/vpda.jpg</src>
      <href>http://vpda.org/</href>
      </bannerLeft>
      <body>
      <links>
      <item name="Home" href="index.html" />
      <item name="Maven 2" href="http://maven.apache.org/"/>
      </links>

      <menu name="VPDA" inherit="none">
      <item name="Introduction" href="introduction.html"/>
      <item name="Usage" href="usage.html"/>
      <item name="Downloads" href="../${project.artifactId}-${project.version}.zip"/>
      </menu>

      <menu ref="modules"/>
      <menu ref="reports"/>
      <menu ref="parent"/>
      </body>
      </project>

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            roman.kitko@gmail.com Roman Kitko
            Votes:
            12 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment