The whole point is to only remove -SNAPSHOT from dependencies _which have
actually been released_

If we remove -SNAPSHOT from dependencies which have not been released then
we'd break your build.

And versions:set is more magic than you think....

if you have the following structure

/pom.xml
  foo/pom.xml
      bar/pom.xml
  manchu/pom.xml
      foo-manchu/pom.xml

and foo-manchu depends on bar

if you change directory into /foo/bar and run mvn versions:set
-DnewVersion=2.0

then versions plugin will (by default or via a property, I forget) dance up
the directory tree for as long as there are aggregator pom's until it
reaches the top of the tree... then it will dance down looking for all
projects that depend on bar:oldVersion and update them to the newVersion.

-Stephen

2009/8/31 Lewis, Eric <[email protected]>

> Sorry, I wasn't precise enough.
> I mean to do this *only* with the dependencies in that POM, not with the
> version of the POM's project.
>
> Best regards,
> Eric
>
> > -----Ursprüngliche Nachricht-----
> > Von: Stephen Connolly [mailto:[email protected]]
> > Gesendet: Freitag, 28. August 2009 18:16
> > An: Maven Users List
> > Betreff: Re: Force versions plugin to remove snapshots
> >
> > versions:set -DnewVersion=7.8.9
> >
> > 2009/8/28 Lewis, Eric <[email protected]>
> >
> > > Hi
> > >
> > > With our build, we have a top-down approach to our
> > releases: We have a
> > > hierarchy of POMs, and the one closest to the project
> > contains all versions
> > > of all our projects.
> > > Now, to release that, we have to remove the -SNAPSHOT from
> > the versions. I
> > > wanted to do this with the versions plugin, but it insists
> > on finding the
> > > releases in the repository.
> > >
> > > Is there any other way I could achieve that?
> > >
> > > Best regards,
> > > Eric
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: [email protected]
> > > For additional commands, e-mail: [email protected]
> > >
> > >
> >
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to