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

Variable substitution in the site url doesn't work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Works for Me
    • 2.3
    • None
    • site:deploy
    • None
    • Windows 7 and RHEL6

    Description

      site:deploy fails because variable substitution in the site url no longer works (it did in version 2.2).

      The distributionManagement section in out POM looks something like this:

      <distributionManagement>
      	<site>
      		<id>sites</id>
      		<name>Project Website</name>
      		<url>scp://server/sites/${project.artifactId}/${project.version}</url>
      	</site>
      </distributionManagement>
      

      Copying the site to the above mentioned url fails with this message:

      [INFO] Error uploading site
      Embedded error: Error performing commands for file transfer
      Exit code: 1 - bash: /sites/${project.artifactId}/${project.version}/../../id-of-the-artifact/0.2.8-SNAPSHOT: bad substitution
      

      Ie. the substitutiuon variables have not been substituted, instead the property values have been appended to the url along with a few dots and dashes.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              clanie Claus Nielsen
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: