You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Francois MAROT <fr...@gmail.com> on 2019/12/05 13:58:30 UTC

Ensure dependency convergence restricted to a given artifactId

Hello all,

First of all thanks thanks and thanks again to the Maven devs, you rock !
Then a question:
is there a way to limit the dependency convergence check (in Maven enforcer
plugin -
https://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html
) to a given artifactId (or a list of artifactId or GA[V]) ?

I ask this because I have a project spanning multiple git repos (the
"original sin") and I have to ensure convergence on a specific dependency.
But historically we have many convergence problems and it would take a lot
more effort to solve them all.

To my knowledge, the plugin is kind of all-or-nothing ? Either all converge,
or it fails. Is there a way to configure it more fine-grained or any
alternative solution ?

Regards

François MAROT



--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Ensure dependency convergence restricted to a given artifactId

Posted by Václav Haisman <vh...@gmail.com>.
I have similar situation. The way I solved this is that I a) manage
dependencies in top most POM and b) use Maven Enforcer to ban all versions
of an artifact except the one I want, using Enforcer's banned dependencies
rule.

Dne čt 5. 12. 2019 14:43 uživatel Francois MAROT <fr...@gmail.com>
napsal:

> Hello all,
>
> First of all thanks thanks and thanks again to the Maven devs, you rock !
> Then a question:
> is there a way to limit the dependency convergence check (in Maven enforcer
> plugin -
> https://maven.apache.org/enforcer/enforcer-rules/dependencyConvergence.html
> ) to a given artifactId (or a list of artifactId or GA[V]) ?
>
> I ask this because I have a project spanning multiple git repos (the
> "original sin") and I have to ensure convergence on a specific dependency.
> But historically we have many convergence problems and it would take a lot
> more effort to solve them all.
>
> To my knowledge, the plugin is kind of all-or-nothing ? Either all
> converge,
> or it fails. Is there a way to configure it more fine-grained or any
> alternative solution ?
>
> Regards
>
> François MAROT
>
>
>
> --
> Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>