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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to