1. 상위 문서

2. 명령어 설명

프로젝트 내 디펜던시를 트리 포맷으로 보여준다.

3. 예제

$ mvn dependency:tree
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] tracker                                                            [pom]
[INFO] rest-support                                                       [jar]
[INFO] users                                                              [jar]
[INFO] accounts                                                           [jar]
[INFO] projects                                                           [jar]
[INFO] timesheets                                                         [jar]
[INFO] registration-server                                                [jar]
[INFO] timesheets-server                                                  [jar]
[INFO]
[INFO] -------------------< io.pivotal.pal.tracker:tracker >-------------------
[INFO] Building tracker 1.0.0                                             [1/8]
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ tracker ---
[INFO] io.pivotal.pal.tracker:tracker:pom:1.0.0
[INFO] +- junit:junit:jar:4.12:compile
[INFO] |  \- org.hamcrest:hamcrest-core:jar:1.3:compile
[INFO] +- org.assertj:assertj-core:jar:3.11.1:compile
[INFO] \- org.mockito:mockito-core:jar:2.23.4:compile
[INFO]    +- net.bytebuddy:byte-buddy:jar:1.9.12:compile
[INFO]    +- net.bytebuddy:byte-buddy-agent:jar:1.9.12:compile
[INFO]    \- org.objenesis:objenesis:jar:2.6:compile
[INFO]
[INFO] ----------------< io.pivotal.pal.tracker:rest-support >-----------------
[INFO] Building rest-support 1.0.0                                        [2/8]
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-dependency-plugin:3.1.1:tree (default-cli) @ rest-support ---

(중략)

[INFO] +- junit:junit:jar:4.12:compile
[INFO] +- org.assertj:assertj-core:jar:3.11.1:compile
[INFO] \- org.mockito:mockito-core:jar:2.23.4:compile
[INFO]    +- net.bytebuddy:byte-buddy:jar:1.9.12:compile
[INFO]    +- net.bytebuddy:byte-buddy-agent:jar:1.9.12:compile
[INFO]    \- org.objenesis:objenesis:jar:2.6:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for tracker 1.0.0:
[INFO]
[INFO] tracker ............................................ SUCCESS [  3.583 s]
[INFO] rest-support ....................................... SUCCESS [  1.007 s]
[INFO] users .............................................. SUCCESS [  0.464 s]
[INFO] accounts ........................................... SUCCESS [  0.628 s]
[INFO] projects ........................................... SUCCESS [  0.300 s]
[INFO] timesheets ......................................... SUCCESS [  0.471 s]
[INFO] registration-server ................................ SUCCESS [  1.686 s]
[INFO] timesheets-server .................................. SUCCESS [  0.894 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  11.248 s
[INFO] Finished at: 2019-08-28T14:46:41+09:00
[INFO] ------------------------------------------------------------------------