You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by 彭宁均 <ab...@qq.com> on 2020/07/08 04:46:13 UTC
does order of dependencies in dependemcymanagement matter?
hi,
guys!
in my team, we use dependencymanagement to manage the version of hundreds dependencies. Now i want to adjust the order of dependencies to make it more clear. So i am wondering does order of dependencies in dependemcymanagement matters?
and also, does order of plugins in pluginmanagement matters?
thanks!
Re: does order of dependencies in dependemcymanagement matter?
Posted by Thomas Broyer <t....@gmail.com>.
I am *really* not sure about this statement, at least for
dependencyManagement.
For pluginManagement, yes, order doesn't matter. The order in build/plugins
matter, but not pluginManagement/plugins.
For dependencyManagement, if you import BOMs with
<scope>import</scope><type>pom</type>, then there could be duplicates and
order matters then (see Question #13 in
http://andresalmiray.com/maven-dependencies-pop-quiz-results/)
On Wed, Jul 8, 2020 at 2:46 PM Tomo Suzuki <su...@google.com.invalid>
wrote:
> The order does not matter. I usually sort them alphabetically so that I can
> easily find duplicates.
>
> On Wed, Jul 8, 2020 at 02:11 彭宁均 <ab...@qq.com> wrote:
>
> > hi,
> > guys!
> > in my team, we use dependencymanagement to manage the version of hundreds
> > dependencies. Now i want to adjust the order of dependencies to make it
> > more clear. So i am wondering does order of dependencies in
> > dependemcymanagement matters?
> > and also, does order of plugins in pluginmanagement matters?
> >
> >
> > thanks!
>
> --
> Regards,
> Tomo
>
--
Thomas Broyer
/tɔ.ma.bʁwa.je/ <http://xn--nna.ma.xn--bwa-xxb.je/>
Re: does order of dependencies in dependemcymanagement matter?
Posted by Tomo Suzuki <su...@google.com.INVALID>.
The order does not matter. I usually sort them alphabetically so that I can
easily find duplicates.
On Wed, Jul 8, 2020 at 02:11 彭宁均 <ab...@qq.com> wrote:
> hi,
> guys!
> in my team, we use dependencymanagement to manage the version of hundreds
> dependencies. Now i want to adjust the order of dependencies to make it
> more clear. So i am wondering does order of dependencies in
> dependemcymanagement matters?
> and also, does order of plugins in pluginmanagement matters?
>
>
> thanks!
--
Regards,
Tomo