Re: Maven brings “test” transitive dependency as “compile”

2020-05-28 Thread Debraj Manna
Thanks Andy. It was a part of big multi-module project which I tried to extract out. So I missed excluding it in some places. On Wed, May 27, 2020 at 5:01 AM Andy Feldman wrote: > Thanks for an easy public reproduction! > > netty-common is coming through with compile scope from: > org.elasticse

Re: Maven brings “test” transitive dependency as “compile”

2020-05-26 Thread Andy Feldman
Thanks for an easy public reproduction! netty-common is coming through with compile scope from: org.elasticsearch.client:transport:jar:5.6.16:compile -> org.elasticsearch.plugin:transport-netty4-client:jar:5.6.16:compile ---> io.netty:netty-common:jar:4.1.13.Final:compile I found this by exclud

Re: Maven brings “test” transitive dependency as “compile”

2020-05-26 Thread Debraj Manna
You can reproduce the issue in https://github.com/debraj-manna/dependency-issue In dependency tree of delete I am seeing dependency as below [INFO] \- org.apache.bookkeeper:bookkeeper-common:test-jar:tests:4.10.0:test [INFO]+- org.apache.bookkeeper.stats:bookkeeper-stats-api:jar:4.10.0:test [

Re: Maven brings “test” transitive dependency as “compile”

2020-05-23 Thread Nick Stolwijk
The verbose flag was removed in newer versions of the plugin. You could try an old pluginversion: mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose With regards, Nick Stolwijk ~~~ Try to leave this world a little better than you found it and, when your turn comes to die,

Re: Maven brings “test” transitive dependency as “compile”

2020-05-23 Thread Debraj Manna
Yes I saw the documentation. It is not behaving as expected. Can you let me know what is the alternative for maven dependency:tree -Dverbose ? If I get the verbose mode for dependency:tree then I think that will provide us more information. On Sat, May 23, 2020 at 6:09 PM Tomo Suzuki wrote: >

Re: Maven brings “test” transitive dependency as “compile”

2020-05-23 Thread Tomo Suzuki
Debraj, I couldn't reproduce the problem in my setting. Netty-common appears as test scope. https://gist.github.com/suztomo/69f854bddd102b3fe83eae8f0720c494 Would you be willing to create a minimum reproducible project? Hopefully it builds only artifacts available on the public Internet (no artif

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Debraj Manna
Thanks Andy for replying. maven dependency:tree -Dverbose does not seem to work for me. It gives me the below message ... [INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ delete --- [INFO] Verbose not supported since maven-dependency-plugin 3.0 [INFO] com.vnera:delete:jar:0.001-SNAPS

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Andy Feldman
On Fri, May 22, 2020 at 6:31 AM Debraj Manna wrote: > bookkeeper-common is in test scope but still netty-common is showing up as > compile dependency. > Is it possible that netty-common is a transitive dependency of another dependency as well? Running dependency:tree does not show all paths to e

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Debraj Manna
Thanks Tomo for replying. No I don't have any dependencyManagement specified in my parent pom. I have placed the effective pom here . mvn dependency:tree -Dverbose does not work for me. Below is the result I got. Am I hitting

Re: Maven brings “test” transitive dependency as “compile”

2020-05-22 Thread Tomo Suzuki
Hi Debraj, That's strange. "mvn dependency:tree -Dverbose" gives more information. "mvn help:effective-pom" may give you some information for netty-comon. By any change, does the parent (or poms imported by parent) declare dependencyManagement for netty-common? On Fri, May 22, 2020 at 9:31 AM