I'm trying to get every single dependency for the artifact axis:axis:1.4 using Maven, but to little success. Here's what I've done:
The POM:
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>com.mycompany</groupId>
<artifactId>myapp</artifactId>
<version>1</version>
<dependencies>
<dependency>
<groupId>axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
</dependencies>
</project>
The Batch Script to build the dependency graph:
@echo off
set PATH=%PATH%;D:\tools\apache-maven-3.6.0\bin
set JAVA_HOME=C:\Program Files (x86)\Java\jre1.8.0_171
call mvn compile dependency:tree -DoutputType=dot -DoutputFile=dependencies.txt
pause
The result:
digraph "com.mycompany:myapp:jar:1" {
"com.mycompany:myapp:jar:1" -> "axis:axis:jar:1.4:compile" ;
"axis:axis:jar:1.4:compile" -> "org.apache.axis:axis-jaxrpc:jar:1.4:compile" ;
"axis:axis:jar:1.4:compile" -> "org.apache.axis:axis-saaj:jar:1.4:compile" ;
"axis:axis:jar:1.4:compile" -> "axis:axis-wsdl4j:jar:1.5.1:runtime" ;
"axis:axis:jar:1.4:compile" -> "commons-logging:commons-logging:jar:1.0.4:runtime" ;
"axis:axis:jar:1.4:compile" -> "commons-discovery:commons-discovery:jar:0.2:runtime" ;
}
At first glance, this seems reasonable. However, a quick search for the commons-logging:commons-logging:1.0.4 artifact reveals that there are more dependencies to be found. The aforementioned commons-logging library depends on:
- log4j:log4j:1.2.6
- logkit:logkit:1.0.1
- avalon-framework:avalon-framework:4.1.3
...yet none of these dependencies (and their dependencies) are found in the generated dependency graph.
My question is, thus, as follows: is there a way to get the aforementioned dependencies (and their dependencies, and their dependencies' dependencies, and so forth...) to show up in the graph? And if so, how?