On 30/07/2011 7:16 AM, boraldo wrote:
I don't need to make maven use A version that is inherited from C exactly.
I want Maven to define the latest version automatically, without explicit
definition.
Not a good idea. You want a repeatable build with a specific version of
A so you know what you are running.
And I don't want to release new version of B only to fix it's A version.
A:1.0 is suitable for B, so there's no need to change it.
In real life I have a lot of artifacts. Some of them are stable and I don't
want to update all them once new version of some middle artifact is changed.
It is worth the effort to decide what version of things you are using.
Having maven pick the latest version when you have not tested your
software with that version is a recipe for long and painful debugging
session that are surprises to everyone involved.
We use 70+ third party libraries to build our application comprised of
over 80 maven projects and every dependency is specified.
We do not upgrade to a new version of anything unless everyone is aware
of the change and someone reads the release notes to verify upward
compatibility and tests the new version with our software.
This makes individual developers confident that what they tested
yesterday was only broken by what they did today not some random fix
applied by a stranger to some library that they did not know was a
dependency of a dependency.
It takes an hour or so to plan a new release and every now and again a
developer asks for a version upgrade in the middle of a development
cycle which creates a min-project to verify that the new version does
not break anything that we have done.
That is a lot less than the time lost by a surprise update of a
dependency by an Apache project or some other third party that breaks
your code.
There is a good reason why dependencies have versions.
You may think that we are just too lazy to live on the edge but we have
learned that it is better to plan than debug.
Ron
--
View this message in context:
http://maven.40175.n5.nabble.com/How-to-use-the-latest-version-from-dependencies-not-from-all-repository-tp4642240p4649537.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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]