The problem with newest is that it can *never* be overridden by the active project, for whatever reason. Instead of newest I'd prefer to use the RequireUpperBoundDependencies Enforcer Rule[1] which give you the same result (otherwise the build will fail).

Robert

[1] http://maven.apache.org/enforcer/enforcer-rules/requireUpperBoundDeps.html

Op Wed, 21 Aug 2013 18:37:40 +0200 schreef Phillip Hellewell <ssh...@gmail.com>:

On Wed, Aug 21, 2013 at 3:19 AM, Baptiste Mathus <m...@batmat.net> wrote:
Wondering: is this strategy still gonna choose the newest version specified
even if I specify a version inside my pom? Or is it only gonna be used
between dependencies?

The behavior we actually need and want most of the time is for it to
pick the newest version, *even if there is a direct dependency from
your pom*.

If the latter, I may agree it can be of interest.
But with the first I guess it would get crazy not being able to force the
version to be used.

Yeah, I know what you mean, and I thought about this too.  It is true
that every once in a while, you may really need to force it to use an
older version (even though some dependency is using a newer version).
That should be pretty rare, but it definitely could happen.

My idea to solve this was to add support for a
<forcever>true</forcever> in the <dependency> declaration.  Thoughts?

Phillip

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org

Reply via email to