[ 
https://issues.apache.org/jira/browse/MNG-6786?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Olof Larsson updated MNG-6786:
------------------------------
    Description: 
https://issues.apache.org/jira/browse/MSHARED-167Please re-add "*mvn 
dependency:tree -Dverbose*".

*Ticket Bounty:* 300USD (will send via PayPal to address of authors choice upon 
feature re-addition)

I find the command to be really useful and use it daily to check for transitive 
dependency clashes.

It seems the command was removed in maven-dependency-plugin:2.11 because it 
used an outdated version of the dependency resolution mechanism?

As a workaround I currently invoke the command like this:
 *mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose*

It's so useful I even added some colorization in bash:

 
{code:java}
function mdt() {
    mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose $@ 
\
        | GREP_COLOR='01;31' grep --color=always -E 'omitted for conflict 
with|$' \
        | GREP_COLOR='01;31' grep --color=always -E 'version managed from|$' \
        | GREP_COLOR='01;32' grep --color=always -E 'omitted for duplicate|$' \
        | GREP_COLOR='01;35' grep --color=always -E ':test|$'
}
{code}
!dependency-tree-verbose-colorized-screen.png|width=588,height=602!

I execute this command every time I wonder if I messed up any transitive 
dependencies. It's a really good and quick sanity check command, and I think 
there's a strong user case for it.

Examples of other people asking for the same thing:
 * 
[http://maven.40175.n5.nabble.com/Not-a-chance-to-show-conflicts-in-dependency-tree-td5944874.html]
 * 
[https://stackoverflow.com/questions/46416236/mvn-dependencytree-is-there-an-equivalent-available-for-verbose-output]

 Related Maven Links:
 * 
[https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-DependencyResolution]
 * https://issues.apache.org/jira/browse/MSHARED-167

 

  was:
Please re-add "*mvn dependency:tree -Dverbose*".

*Ticket Bounty:* 300USD (will send via PayPal to address of authors choice upon 
feature re-addition)

I find the command to be really useful and use it daily to check for transitive 
dependency clashes.

It seems the command was removed in maven-dependency-plugin:2.11 because it 
used an outdated version of the dependency resolution mechanism?

As a workaround I currently invoke the command like this:
 *mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose*

It's so useful I even added some colorization in bash:

 
{code:java}
function mdt() {
    mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose $@ 
\
        | GREP_COLOR='01;31' grep --color=always -E 'omitted for conflict 
with|$' \
        | GREP_COLOR='01;31' grep --color=always -E 'version managed from|$' \
        | GREP_COLOR='01;32' grep --color=always -E 'omitted for duplicate|$' \
        | GREP_COLOR='01;35' grep --color=always -E ':test|$'
}
{code}
!dependency-tree-verbose-colorized-screen.png|width=588,height=602!

I execute this command every time I wonder if I messed up any transitive 
dependencies. It's a really good and quick sanity check command, and I think 
there's a strong user case for it.

Examples of other people asking for the same thing:
 * 
[http://maven.40175.n5.nabble.com/Not-a-chance-to-show-conflicts-in-dependency-tree-td5944874.html]
 * 
[https://stackoverflow.com/questions/46416236/mvn-dependencytree-is-there-an-equivalent-available-for-verbose-output]

 Related Maven Links:
 * 
[https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-DependencyResolution]
 * 

 


> Re-Add Dependency Tree Verbose
> ------------------------------
>
>                 Key: MNG-6786
>                 URL: https://issues.apache.org/jira/browse/MNG-6786
>             Project: Maven
>          Issue Type: Improvement
>          Components: Command Line, Dependencies, Plugin Requests
>    Affects Versions: 3.6.2
>            Reporter: Olof Larsson
>            Priority: Minor
>         Attachments: dependency-tree-verbose-colorized-screen.png
>
>
> https://issues.apache.org/jira/browse/MSHARED-167Please re-add "*mvn 
> dependency:tree -Dverbose*".
> *Ticket Bounty:* 300USD (will send via PayPal to address of authors choice 
> upon feature re-addition)
> I find the command to be really useful and use it daily to check for 
> transitive dependency clashes.
> It seems the command was removed in maven-dependency-plugin:2.11 because it 
> used an outdated version of the dependency resolution mechanism?
> As a workaround I currently invoke the command like this:
>  *mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose*
> It's so useful I even added some colorization in bash:
>  
> {code:java}
> function mdt() {
>     mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:tree -Dverbose 
> $@ \
>         | GREP_COLOR='01;31' grep --color=always -E 'omitted for conflict 
> with|$' \
>         | GREP_COLOR='01;31' grep --color=always -E 'version managed from|$' \
>         | GREP_COLOR='01;32' grep --color=always -E 'omitted for duplicate|$' 
> \
>         | GREP_COLOR='01;35' grep --color=always -E ':test|$'
> }
> {code}
> !dependency-tree-verbose-colorized-screen.png|width=588,height=602!
> I execute this command every time I wonder if I messed up any transitive 
> dependencies. It's a really good and quick sanity check command, and I think 
> there's a strong user case for it.
> Examples of other people asking for the same thing:
>  * 
> [http://maven.40175.n5.nabble.com/Not-a-chance-to-show-conflicts-in-dependency-tree-td5944874.html]
>  * 
> [https://stackoverflow.com/questions/46416236/mvn-dependencytree-is-there-an-equivalent-available-for-verbose-output]
>  Related Maven Links:
>  * 
> [https://cwiki.apache.org/confluence/display/MAVEN/Maven+3.x+Compatibility+Notes#Maven3.xCompatibilityNotes-DependencyResolution]
>  * https://issues.apache.org/jira/browse/MSHARED-167
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to