Maven SCM
  1. Maven SCM
  2. SCM-531

Incorrect SCM URL constructed when using parent POM that is not in the parent directory

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: maven-scm-site
    • Labels:
      None
    • Environment:

      Description

      In our parent pom we have this:

        <properties>
          <scm.module>master-pom</scm.module>
        </properties>
        <scm>
          <connection>scm:cvs:ext:build@server:/srv/cvs/:${scm.module}</connection>
          <developerConnection>scm:cvs:ext:build@server:/srv/cvs/:${scm.module}</developerConnection>
          <url>http://server/fe/browse/UK-CVS-Rsync/${scm.module}</url>
        </scm>
      

      Our child pom (not in the same directory), has this:

        <artifactId>dd-util</artifactId>
        <properties>
          <scm.module>util</scm.module>
        </properties>
      

      Of course, the child pom is overriding the property. Well, it sort of works.
      When building the site of the parent pom, we get:

      http://server/fe/browse/UK-CVS-Rsync/master-pom
      

      ... which is correct. But when building the site for the child pom, we get:

      http://server/fe/browse/UK-CVS-Rsync/util/dd-util
      

      I'm quite confused as to why it whould be appending the artifactId of the child project. The property is getting replaced ok, but the the extra bit? This has got to be a bug.

      I'm not releasing the project, just building the site.

      Any ideas? If this is against the wrong project, can it be moved?

        Activity

        Mark Thomas made changes -
        Workflow jira [ 12962974 ] Default workflow, editable Closed status [ 12999353 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 01:08:37 UTC 2015 [ 1428282517778 ]
        Mark Thomas made changes -
        Workflow jira [ 12725535 ] Default workflow, editable Closed status [ 12757603 ]
        Mark Thomas made changes -
        Field Original Value New Value
        Project Import Sun Apr 05 12:22:36 UTC 2015 [ 1428236556206 ]
        Darren Bell created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Darren Bell
          • Votes:
            15 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

            • Created:
              Updated:

              Development