Hi everyone,
I'm new at Maven, and at first, everything seems pretty
cool. But I'm trying a little something, and I can't get it to work.
I have 1 parent pom.xml, that contains all the informations that are
shared between multiples project. And 1 part of this information is
about the "scm". Here is what it looks like in the parent pom.xml:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>my-groupId</groupId>
<artifactId>my-parent</artifactId>
<name>my-parent-name</name>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>
<scm>
<connection>scm:starteam:servername:1234:${scm.component.path}</connecti
on>
<developerConnection>scm:starteam:servername:1234:${scm.component.path}<
/developerConnection>
</scm>
...
...
</project>
You see, I use the "${scm.component.path}" variable to construct the
path. My goal is that, in every "sub-project", I would like to define
that property, and simply give the desired value, like this way:
<project>
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>my-groupId</groupId>
<artifactId>my-parent</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>
<groupId>another-groupId</groupId>
<artifactId>my-artifactId</artifactId>
<name>my-child-project</name>
<version>2.1-SNAPSHOT</version>
<properties>
<scm.component.path>/my/desired/path/</scm.component.path>
</properties>
...
...
</project>
It seems to work, but for some reason, the property "scm.component.path"
is replaced by "/my/desired/path//my-artifactId" (I don't want the
"/my-artifactId" part!!!).
What do I do wrong?
Thank you for your time.
Jean-Francois Croteau