And configure the release plugin with:
<configuration>
<autoVersionSubmodules>true</autoVersionSubmodules>
</configuration>
So you don't have to type the same version number over and over again.
Kalle
2008/10/23 Wendy Smoak <[EMAIL PROTECTED]>
> On Thu, Oct 23, 2008 at 8:49 PM, sean.chen(陈思淼) <[EMAIL PROTECTED]>
> wrote:
>
> > the sub module's version should be the same with the parent module.when
> the
> > parent version changes, all the sub-module will change its version.
> >
> > how to deal with it?
>
> Simply omit the <version> tag in the child, and it will be inherited
> from the parent.
>
> The child pom looks like:
>
> <project>
> <parent>
> <groupId>com.example</groupId>
> <artifactId>myproject</artifactId>
> <version>1.0-SNAPSHOT</version>
> </parent>
> <artifactId>myproject-core</artifactId>
> ...
>
> Then use the release plugin to update the version 1.0-SNAPSHOT -> 1.0
> -> 1.1-SNAPSHOT at release time.
>
> --
> Wendy
>