Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-3621

site url inheritance broken for UNC paths

    XMLWordPrintableJSON

Details

    • Patch

    Description

      I have a parent POM that is inherited by multiple projects that specifies site wide default settings.
      (e.g)
      Parent\pom.xml <--- this is the pom containing the site configuration
      Parent\CheckStyleConfig\pom.xml

      Part of this is the site deploy

      <distributionManagement>
      <site>
      <id>nds-uk.site</id>
      <url>file://///scg-nas.uk.nds.com/maven_sites/${project.groupId}/${project.artifactId}/${project.version}</url>
      </site>
      </distributionManagement>

      running site:deploy on the sub procject results in it using a corrupted version of the url.

      build output attached.

      Notice the corruption of the original parent file:///// (2 slashes are removed so it tries to deploy to local HDD)

      parent (OK 5 slashes) file://///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-parent/1.0.0.0-SNAPSHOT - Session: Opened
      child (bad 3 slashes) file:///scg-nas.uk.nds.com/maven_sites/com.nds.cab.scg/common-checkstyle/1.0.0.0-SNAPSHOT/common-checkstyle - Session: Opened

      Attachments

        1. MNG-3621.patch
          2 kB
          Benjamin Bentmann
        2. build.txt
          2 kB
          James Nord

        Activity

          People

            brett Brett Porter
            teilo James Nord
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: