have a look at some of the goals in versions-maven-plugin

[yoda]mmmm, might able be to help you they might[/yoda]

On 9 March 2011 18:16, Daryl Lonnon <[email protected]> wrote:

> Joachim,
>
> So effectively, each of the modules you wish to version separately, is
> treated as it's own release. Then you have a separate release (the dep
> module) that specifies dependency to all of your other modules.
>
> Do each of your "sub" modules (the non dependency module) keep track of
> their own versioning and dependencies?
>
> "mvn release" will handle tracking of the version of the module but not
> it's
> dependencies (IIRC). How do you update those dependency versions before and
> after a release (do you do it by hand)?
>
> Do each of these modules have a common parent pom.xml (and do you track
> dependencies in that)?
>
> Right now, I'm thinking of writing a script that does a release, since I'm
> not seeing an easy way to do it within the maven framework. But I'd love to
> be shown how to make it work within that framework cleanly.
>
> Daryl
>
>
> On Wed, Mar 9, 2011 at 6:00 AM, Joachim Van der Auwera <[email protected]
> >wrote:
>
> > The way we handle this in the Geomajas project is for (sets of) modules
> to
> > have their own version and have one module (the -dep module) which only
> > contains a pom with dependencyManagement section which defines the latest
> > version of all modules (actually this pulls in the parent module for each
> > set of modules to assure all dependency versions contained in the
> > dependencyManagement of these modules are pulled in).
> >
> > Hoping my explanation is somewhat understandable.
> >
> > Kind regards,
> > Joachim
> >
> >
> > On 03/09/2011 12:47 AM, Daryl Lonnon wrote:
> >
> >> Hi, hopefully someone can help me with this.
> >>
> >> So I have a situation where I have a project with multiple sub-projects.
> >> Some of the sub-projects depend on one another.
> >>
> >> I'd like to version the sub-projects independently while still releasing
> >> something that defines the project as a whole. Some of the sub-projects
> >> have
> >> associated resources files that can be quite large, so ideally you
> >> wouldn't
> >> have to re-release them if they haven't changed. Also it'd be nice if
> >> after
> >> a release, the development environment reverts back to the next versions
> >> SNAPSHOTs.
> >>
> >> So my wish list looks like:
> >> 1. I'd like to version the sub projects independently.
> >> 2. I'd like to be able to release a "global" version which defines the
> set
> >> of sub-projects that work with one another.
> >> 3. I'd like to not release sub-projects that haven't changed just to
> >> release
> >> a "global" version.
> >> 4. I'd like to have my development environment be cohesive after a
> release
> >> (i.e. point to my local repositiories SNAPSHOTS for the sub-project
> >> inter-dependencies)..
> >>
> >> Has anyone ever tried to do something like this?
> >>
> >> I've found:
> >>
> >>
> http://out-println.blogspot.com/2008/10/maven-modules-with-independent-versions.html
> >> but that scheme doesn't support wish 4 as far as I can tell.
> >>
> >> Daryl
> >>
> >>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>

Reply via email to