Mark Raynsford
2018-11-03 18:11:26 UTC
Let's say I have the following:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>a</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<scm child.inherit.append.path="false">
<url>https://example.com/a</url>
<connection>scm:git:https://example.com/a</connection>
<developerConnection>scm:git:https://example.com/a</developerConnection>
</scm>
</project>
And then:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.example</groupId>
<artifactId>a</artifactId>
<version>1.0.0</version>
</parent>
<groupId>com.example</groupId>
<artifactId>b</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<scm>
<url>https://example.com/b</url>
<connection>scm:git:https://example.com/b</connection>
<developerConnection>scm:git:https://example.com/b</developerConnection>
</scm>
</project>
And then:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.example</groupId>
<artifactId>b</artifactId>
<version>1.0.0</version>
</parent>
<groupId>com.example</groupId>
<artifactId>c</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
</project>
So that's com.example:a:1.0.0 â com.example:b:1.0.0 â
com.example:c:1.0.0.
Would you expect com.example:c:1.0.0 to have
child.inherit.append.path="true" for the (inherited) <scm> element? It
wasn't clear exactly what semantics were intended to be. What I *think*
is happening right now is that the <scm> element in com.example:b:1.0.0
is assigned a value of child.inherit.append.path="true", because "true"
is the default if something isn't specified and it overrides the value
specified in com.example:a:1.0.0.
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>a</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<scm child.inherit.append.path="false">
<url>https://example.com/a</url>
<connection>scm:git:https://example.com/a</connection>
<developerConnection>scm:git:https://example.com/a</developerConnection>
</scm>
</project>
And then:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.example</groupId>
<artifactId>a</artifactId>
<version>1.0.0</version>
</parent>
<groupId>com.example</groupId>
<artifactId>b</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
<scm>
<url>https://example.com/b</url>
<connection>scm:git:https://example.com/b</connection>
<developerConnection>scm:git:https://example.com/b</developerConnection>
</scm>
</project>
And then:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>com.example</groupId>
<artifactId>b</artifactId>
<version>1.0.0</version>
</parent>
<groupId>com.example</groupId>
<artifactId>c</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>
</project>
So that's com.example:a:1.0.0 â com.example:b:1.0.0 â
com.example:c:1.0.0.
Would you expect com.example:c:1.0.0 to have
child.inherit.append.path="true" for the (inherited) <scm> element? It
wasn't clear exactly what semantics were intended to be. What I *think*
is happening right now is that the <scm> element in com.example:b:1.0.0
is assigned a value of child.inherit.append.path="true", because "true"
is the default if something isn't specified and it overrides the value
specified in com.example:a:1.0.0.
--
Mark Raynsford | http://www.io7m.com
Mark Raynsford | http://www.io7m.com