Hi if my child pom like this: > <project> > <parent>
<groupId>com.example</groupId> <artifactId>myproject</artifactId> <version>1.0-SNAPSHOT</version> </parent> My child module's version should be 1.0-SNAPSHOT all the time if I dont specify the sub module's version. or I set the parent version is 1.0-SNAPSHOT all the time, but I set a properties just like: > <properties> > <all.version>2.0</all.version> > </properties> all my sub project should ref the properties. It will be works. 2008/10/24 Kalle Korhonen <[EMAIL PROTECTED]> > 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 > > >
