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

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Darren Bell
          • Votes:
            13 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

            • Created:
              Updated:

              Development