[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Dependence on specific versions



On Thu, Feb 10, 2011 at 9:47 PM, Stefane Fermigier <sf@nuxeo.com> wrote:
> On Feb 10, 2011, at 9:38 PM, Torsten Werner wrote:
>> a.jar (0.1) depends on b.jar (0.1)
>> c.jar (0.3) depends on b.jar (0.2)
>> d.jar (0.4) depends on a.jar (0.1) and c.jar (0.3)
>
> A lot of things are wrong in Maven, but it this case, you just ask maven to use a fixed version of the dependency in the dependencyManagement section of your POM, and voila.

No, if you choose b.jar (0.1) then c.jar (0.3) does not git its
preferred version. If you choose b.jar (0.2) then a.jar (0.1) does not
get its preferred version. That means either a.jar or c.jar will get a
non preferred version. What is the point of specifying fixed versions
if you cannot rely on getting them?

Torsten


Reply to: