if you have a corporate pom as your parent, you should be depending on
a released version of that pom, or else your build is not fully
reproducible
my rule of thumb is that if the projects are all part of the same scm
tree and can be releasedin one go, then snapshots are valid, otherwise
releases only
for integration development, we check both projects out locally and
install the. snapshots by doing a local build
we have abbandonded deploying non-snapshots as it only causes pain,
and after all the release early, release often strategy works well for
us. we had over 163 releases of one project in a 9 month period
Sent from my iPod
On 24 Dec 2008, at 14:45, Stephen Connolly <[email protected]
> wrote:
if the parent is only being downloaded from the maven repo, and you
have not checked it out of scm locally, you should really be using a
released version and not a snapshot.
if you're using a release version then update-parent will do what
you want
Sent from my iPod
On 24 Dec 2008, at 01:59, nodje <[email protected]> wrote:
alas, -U doesn't work for parent pom, only for dependencies!
thanks fo the plugin anyway!
Stephen Connolly-2 wrote:
2008/12/23 nodje <[email protected]>
yep, it works with -DallowSnapshots=true, thanks.
I got mistaken because of one example that was using
-DallowSnapshots=false,
I thought true was the default value.
I get it for the parent problem. I've been redirected to the
version
plugin
by Maven folks about the automatic parent pom upgrade. We still
have to
wait
for it to be fixed I guess.
I've tried to deploy a new 3-SNAPSHOT version of my parent pom to
the
local
repository.
However, other machines wouldn't get the latest, just deployed
version,
with
a <mvn versions:update-parent -DallowSnapshots=true>.
It would only upgrade the pom with the latest found parent
version, but
not
find out there's a newer SNAPSHOT in the repository, isn't it?
If you're looking at 3-SNAPSHOT vs 3-SNAPSHOT, that's not what
versions-maven-plugin is for.
versions-maven-plugin is to change the version numbers.... so 3-
SNAPSHOT
->
3.1-SNAPSHOT
If you just want to pick up the latest snapshot, just run mvn with
-U
cheers
Stephen Connolly-2 wrote:
2008/12/22 nodje <[email protected]>
How would you configure the plugin so that it executes at each
mvn
execution? Or better, follow the regular Maven once-a-day update
policy
applied to the dependencies.
That cannot ever work...
Maven reads the pom when it starts... versions-maven-plugin
changes the
pom... the pom on disk will not be the same as the pom that
maven read
in
before running versions-maven-plugin.
You *always* have to run versions-maven-plugin on its own...
e.g.
mvn versions:update-parent -DallowSnapshots=true
mvn clean install
Binding it to a phase will not do what you think it should do!
--
View this message in context:
http://www.nabble.com/Versions%3Aupdate-parent-usage-tp21125090p21139080.html
Sent from the mojo - user mailing list archive at Nabble.com.
---
------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
View this message in context:
http://www.nabble.com/Versions%3Aupdate-parent-usage-tp21125090p21154214.html
Sent from the mojo - user mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email