Details
-
Type:
New Feature
-
Status:
Open
-
Priority:
Trivial
-
Resolution: Unresolved
-
Affects Version/s: 2.0.9, 2.1.0-M1
-
Fix Version/s: 3.x / Backlog
-
Component/s: Inheritance and Interpolation
-
Labels:None
-
Complexity:Intermediate
-
Number of attachments :
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
| This issue relates to: | ||||
| MNG-3845 | [regression] Unintended inheritance of parent elements overriden by children |
|
|
|