Hi,

In the parent POM I have the following:
[...]
  <properties>
    <scmConnection>
http://localhost/repos/repo/${groupId}/${artifactId}/trunk</scmConnection>
  </properties>


  <scm>
    <connection>${scmConnection}</connection>
    <developerConnection>${scmConnection}</developerConnection>
  </scm>
[...]

The child POM has nothing expect mandatory elements and the reference to the
parent POM. Both the child and the parent are snapshots. The parent POM has
been deployed to the remote repository.

When I run mvn help:effective-pom on the child project, I get:
[...]
  <scm>
    <connection>http://localhost/repos/repo/com.opicasso/Child/trunk/Child
</connection>
    <developerConnection>
http://localhost/repos/repo/com.opicasso/Child/trunk/Child
</developerConnection>
  </scm>
[..]

I would have expected:
[...]
  <scm>
    <connection>http://localhost/repos/repo/com.opicasso/Child/trunk
</connection>
    <developerConnection>
http://localhost/repos/repo/com.opicasso/Child/trunk</developerConnection>
  </scm>
[..]

Why does maven happen the child artifactId to the connections? Does maven
merge the parent scm connections with the children ones ? But in the current
case the child has no scm connections defined in its pom.

How to get rid of this extra artifactId?

Thanks

Oscar

Reply via email to