Maven 2 & 3

Review inheritance of SCM info

Details

  • Complexity:
    Intermediate
  • Number of attachments :
    0

Description

Consider this parent POM snippet:

<scm>
  <url>http://parent.url/viewvc</url>
  <connection>http://parent.url/scm</connection>
  <developerConnection>https://parent.url/scm</developerConnection>
  <tag>parent-tag</tag>
</scm>

And now this child POM snippet:

<scm>
  <developerConnection>https://child.url/scm</developerConnection>
</scm>

This delivers the effective child POM:

<scm>
  <url>http://parent.url/viewvc/child</url>
  <connection>http://parent.url/scm/child</connection>
  <developerConnection>https://child.url/scm</developerConnection>
</scm>

i.e. <url> and <connection> are still inherited.

This appears neither sensible nor consistent with other inheritance rules (e.g. <ciManagement> and <issueManagement> are only inherited if completely omitted in the child).

Issue Links

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: