Hi,
What about use <property> tag inherited into child pom to put <version>
information?
Parent POM will define <distributionManagement> with this property version,
and child module will use also the property to define their version.
For example, you will have Parent like this:
...
<packaging>pom</packaging>
<version>2.2</version>
<name>COMMON</name>
<url>http://maven.apache.org/</url>
<properties>
<common.tools.version>2.2.0-SNAPSHOT</common.tools.version>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>com.common.tools</groupId>
<artifactId>MyModule</artifactId>
<version>${common.tools.version}</version>
</dependency>
</dependencies>
</dependencyManagement>
...
And in child POM:
...
<artifactId>MyModule</artifactId>
<packaging>jar</packaging>
<version>${common.tools.version}</version>
<parent>
<groupId>com.common.tools</groupId>
<artifactId>COMMON</artifactId>
<version>2.2</version>
</parent>
...
But, I don't if this solution suit well with other plugins work, like
release...
Sebastien
Mark Chaimungkalanont wrote:
>
> Jörg,
>
> Thanks a ton for the info, really appreciate it. I guess I'll stick to
> using SNAPSHOT as
> the parent POM's version then.
>
> From your comment at http://jira.codehaus.org/browse/MRELEASE-96, it
> seems that we were
> dealing with exactly the same dilemma!
>
> Thanks again!
>
> Mark C
>
> Jörg Schaible wrote:
>> Jörg Schaible wrote on Wednesday, June 14, 2006 11:30 AM:
>>
>>> Mark Chaimungkalanont wrote on Wednesday, June 14, 2006 10:54 AM:
>>>
>>>> I'm thinking this *should* be a fairly common use-case, and wondered
>>>> what other solutions there are.
>>
>> Not that I don't understand your pain: MRELEASE-96
>>
>> - Jörg
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Parent-POM-across-projects-tf1784776s177.html#a7091745
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]