maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anders Hammar <and...@hammar.net>
Subject Re: Scope question
Date Tue, 05 Nov 2013 10:31:39 GMT
Should be possible to change through the dependencyManagement section.

/Anders


On Tue, Nov 5, 2013 at 10:47 AM, Guillaume CHAUVET <
guillaume.chauvet@qualiformed.com> wrote:

> Hello,
>
> I wondering if it is possible to change the scope of a dependency
> depending on the position in the tree of dependencies ?
> Here is a small example:
> An artifact "A" with a dependence on a "z" artifact defined with "compile"
> scope.
> If I use artifact "A" in a project "B", I would like the dependency scope
> of "z" becomes "runtime", in order to prevent the user to explicitly call
> classes from artifact "z ".
>
> Do you think it is possible to have this kind of behaviour ?
> Thanks in advance,
>
> Guillaume
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message