Has anyone been able to figure out an alternate solution where doesnt need to specify the "<version>${pom.parent.version}</version>" in every pom ? and be able to inherit/refer the parent pom, so that we can specify the pom version(s) in a multi-module project at one place, and hence make the branching easy..
Petr Ferschmann wrote: > > Hello, > > The solution is not that simple. The problem with inherited version is > if you enter only the subproject (and run mvn command there), the newest > version (I think) of parent pom.xml is always used. > So if you checkout older version, it can make problems. > > So we used different approach, we specify in every pom.xml the parent > version. For project version we use > <version>${pom.parent.version}</version>. > > The only working solution is using the maven release plugin (it > increases version when releasing new version). > Without that I was not able to use simple way for version handling. > > How others handle that? > > Petr > > > Maria Odea Ching píše v Pá 15. 06. 2007 v 16:43 +0800: > >> You can do that by not specifying the <version> element in your child >> pom. The child pom would automatically inherit its parent's version >> which you specified in the <parent> block. >> >> See >> http://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project%20Inheritance >> >> -Deng >> >> Jens Hohl wrote: >> > Good Morning, >> > >> > >> > >> > >> > >> > Can someone point me to infos how i can set the version in a >> > Multiproject ? >> > >> > In my parent pom file the <version><version> Tag contains e.g >> > 1.0-SNAPSHOT. >> > >> > How can I refer to that value in my child POMs ? What's best way to do >> > that ? >> > >> > >> > >> > Regards, >> > >> > Jens >> > >> > >> > >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > Petr Ferschmann > > > SoftEU s.r.o. > ----------------------------------- > Bolevecká 6 > 301 00 Plzen > Czech Republic > ----------------------------------- > Phone: +420 373 731 284 > +420 373 729 300 > Fax: +420 373 729 301 > Cell: +420 775 638 008 > E-mail: [EMAIL PROTECTED] > > -- View this message in context: http://www.nabble.com/Versions-in-a-Multiproject-tp11135002p19061164.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]