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

${project.distributionManagement.site.url} can't use ${property} values in multi module projects

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.1
    • None
    • inheritance, site:deploy
    • None

    Description

      I wanted to use the site:stage-deploy goal. In order to use this I needed to provide a ${project.distributionManagement.site.url}. Which, first I think it wrong, since I provide my own 'stagingSiteURL' the ${project.distributionManagement.site.*} will not be used.

      Because we don't actually have a scp, ftp, svn... location to deploy to I tried to substitute a ${project.distributionManagement.site.url} that I knew every maven user would have. Since they have ~/.m2/repository I tried using...
      <url>file://${settings.localRepository}/../sites/${project.groupId}</url>

      But when this is used with a multi module project, and with a 'stagingSiteURL' some very strange url's are built when trying to stage-deploy. This means the modules never deploy.

      There's a few things going on here. My workaround means I just have to have ${project.distributionManagement.site.url}=='<url>not-used</url>'.

      Attachments

        Activity

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

          People

            ltheussl Lukas Theussl
            ahhughes Andrew Hughes
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment