[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] version numbering strategy

Hello Lorenzo,

i think it depends on how you do your versioning.

For example if you use semantic versioning (See section 3.7.3 of the OSGi Core Specification) you would version your packages.
The version of your bundles would evolve in tune of the contained packages.
In that case it makes sense to have the version in all poms.

If you don't version your packages and give all your bundles the same version it makes sense to specify a version in the parent POM only.

Regards,
Davy


> To: tycho-user@xxxxxxxxxxx
> From: lorenzo.bettini@xxxxxxxxx
> Date: Fri, 30 Mar 2012 21:23:24 +0200
> Subject: Re: [tycho-user] version numbering strategy
>
> On 03/30/2012 07:54 PM, Kamil Demecki wrote:
> > Hi Lorenzo,
> >
> > It is general maven issue: child pom inherits version and group id
> > from parent pom so you can skip it but still you need include group
> > and version in reference to parent from child (parent section).
> >
> > <parent>
> > <artifactId>mandatory</artifactId>
> > <groupId>mandatory</groupd>
> > <version>mandatory</version>
> > </parent>
> > <artifactId>child</artifactId>
> >
>
> right! so in any case I have version repetitions anyway ;)
>
> However, I found that I can update them all automatically with this
>
> mvn org.eclipse.tycho:tycho-versions-plugin:set-version
> -DnewVersion=<version>
>
> thanks
> Lorenzo
>
> > 2012/3/30 Lorenzo Bettini<lorenzo.bettini@xxxxxxxxx>:
> >> Hi
> >>
> >> I've been using Tycho only for a few days, so my question might be odd, but
> >> I was wondering whether it makes sense to specify the<version> only in the
> >> parent pom and not in the other poms (by the way, from eclipse you get a
> >> warning when you do that)... or is it better to specify the<version> in all
> >> poms?
> >>
> >> thanks in advance
> >> Lorenzo
> >>
> >> --
> >> Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
> >> HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
> >> BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
> >>
> >>
> >> _______________________________________________
> >> tycho-user mailing list
> >> tycho-user@xxxxxxxxxxx
> >> https://dev.eclipse.org/mailman/listinfo/tycho-user
> > _______________________________________________
> > tycho-user mailing list
> > tycho-user@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/tycho-user
>
>
> --
> Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino
> HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com
> BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com
>
>
> _______________________________________________
> tycho-user mailing list
> tycho-user@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/tycho-user