Review inheritance of SCM info
------------------------------
Key: MNG-3844
URL: http://jira.codehaus.org/browse/MNG-3844
Project: Maven 2
Issue Type: Wish
Components: Inheritance and Interpolation
Affects Versions: 2.1.0-M1, 2.0.9
Reporter: Benjamin Bentmann
Priority: Trivial
Consider this parent POM snippet:
{code:xml}
<scm>
<url>http://parent.url/viewvc</url>
<connection>http://parent.url/scm</connection>
<developerConnection>https://parent.url/scm</developerConnection>
<tag>parent-tag</tag>
</scm>
{code}
And now this child POM snippet:
{code:xml}
<scm>
<developerConnection>https://child.url/scm</developerConnection>
</scm>
{code}
This delivers the effective child POM:
{code:xml}
<scm>
<url>http://parent.url/viewvc/child</url>
<connection>http://parent.url/scm/child</connection>
<developerConnection>https://child.url/scm</developerConnection>
</scm>
{code}
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).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira