That's the expected behavior, in that ${project.version} is the current
module's version and not that of it's parent. If you need the parent's
version, then yes, we need a property like geronimoVersion.
-Donald
On 7/13/10 10:56 PM, Rex Wang wrote:
> Hi,
>
> I suggest we stop using ${project.version} in 3.0's pom.
> This maven variable will magicly change when I create a new sub-project
> which has it own version.
> For example,
> When I create a new server assembly "abc" under the assemblies project,
> and the abc's pom has it own version 3.0.0.0 <http://3.0.0.0>:
> <parent>
> <groupId>org.apache.geronimo.assemblies</groupId>
> <artifactId>assemblies</artifactId>
> <version>3.0-M1</version>
> </parent>
>
> <groupId>c.i.w.assemblies</groupId>
> <artifactId>abc</artifactId>
> <version>3.0.0.0</version>
> <packaging>server-assembly</packaging>
>
> Then, in its effective pom, maven will replace all the
> ${project.version} defined in parent pom with 3.0.0.0
>
> I think we use ${geronimoVersion} instead and specify geronimoVersion
> explicitly in root pom.
>
> Thoughts?
>
> --
> Lei Wang (Rex)
> rwonly AT apache.org <http://apache.org>