You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Olivier Dehon <od...@gmail.com> on 2008/01/18 02:56:55 UTC
Interpolated variable name for reactor project artifactId
Hi,
In my multi-module maven2 project POM, which variable name should I use
that interpolates to the artifactId of the root project POM, and not of
that of the module which is getting built?
For example:
<artifactId>proj-parent</artifactId>
<groupId>projGroup</groupId>
<version>1.0-SNAPSHOT</version>
<scm>
<url>http://proj.mycompany.com/svnrepo/${artifactId}/trunk</url>
</scm>
...
<modules>
<module>moduleA</module>
<module>moduleB</module>
</modules>
...
As is, the SCM URL for proj-parent is generated as expected, but when
moduleA gets built (standalone or as part of the reactor build), the SCM
URL for moduleA is interpolated to
http://proj.mycompany.com/svnrepo/moduleA/trunk/moduleA
I tried ${pom.artifactId}, ${project.artifactId} and ${artifactId}, to
no avail.
Do I always have to hardcode the name of the id of the parent artifact?
Thanks for your enlightening answers.
-Olivier
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org