maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Kahn <citizenk...@gmail.com>
Subject Re: dependency:list -DincludeScope=compile lists compile scope for transitive dependencies of test scope items
Date Fri, 21 Jun 2013 14:42:25 GMT
Oh, it's a bug (http://jira.codehaus.org/browse/MNG-3089) explained in this
thread http://www.mail-archive.com/dev@maven.apache.org/msg68011.html  but
not fixed.

Peter


On Thu, Jun 20, 2013 at 6:03 PM, Peter Kahn <citizenkahn@gmail.com> wrote:

> Hi all,
>
> Do I have a problem with maven-dependency-plugin 2.8 or with my
> understanding of dependency scope?
>
> I run  "mvn dependency:list -DincludeScope=compile"  and see items which
> are transitive dependencies of "test" scope items.
>
> My project depends on "org.apache.httpcomponents:httpclient:jar:4.1*:test*"
>
> and httpclient depends on "org.apache.httpcomponents:httpcore:jar:4.1:*
> compile*"
>
> If I look at compile scope dependencies, I do not expect to see anything
> below httpclient because it's test scope and the branch of dependencies
> beneath it should be filtered out.
>
>
> However, "mvn dependency:list -DincludeScope=compile
> -DexcludeScope=test|grep -i http.*core" lists httpcore
> [INFO]    org.apache.httpcomponents:httpcore:jar:4.1:compile
>
>
>
> *My Project's dependency:tree output
> *[INFO] +- org.apache.httpcomponents:httpclient:jar:4.1:*test*
> [INFO] |  +- org.apache.httpcomponents:httpcore:jar:4.1:*compile*
> [INFO] |  +- commons-logging:commons-logging:jar:1.1:test
> [INFO] |  \- commons-codec:commons-codec:jar:1.4:compile
>
>
> Am I missing a flag that handles this "properly" or am I misunderstanding
> what proper is in this situation.
>
> Thanks for the help
>
> Peter
>
>
> --
> Peter Kahn
> citizenkahn@gmail.com
> http://www.google.com/profiles/citizenkahn
> Awareness - Intention - Action
>



-- 
Peter Kahn
citizenkahn@gmail.com
http://www.google.com/profiles/citizenkahn
Awareness - Intention - Action

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