You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Peter Kahn <ci...@gmail.com> on 2013/06/21 00:03:21 UTC
dependency:list -DincludeScope=compile lists compile scope for
transitive dependencies of test scope items
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
Re: dependency:list -DincludeScope=compile lists compile scope for
transitive dependencies of test scope items
Posted by Peter Kahn <ci...@gmail.com>.
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 <ci...@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