extended-dependency-plugin will allow you to pull down all the dependency sources or javadoc jars for all the transitive dependencies.
Add a dependency to com.github.vincentrussell:extended-dependency-plugin
.
<dependency>
<groupId>com.github.vincentrussell</groupId>
<artifactId>extended-dependency-plugin</artifactId>
<version>1.0</version>
</dependency>
- JDK 1.8 or higher
get all sources transitively
mvn com.github.vincentrussell:extended-dependency-plugin:1.0:get -Dmaven.repo.local=/tmp/localRepo -Dartifact=org.elasticsearch.client:transport:6.7.1:jar:sources -Dtransitive=true
get all javadoc transitively
mvn com.github.vincentrussell:extended-dependency-plugin:1.0:get -Dmaven.repo.local=/tmp/localRepo -Dartifact=org.elasticsearch.client:transport:6.7.1:jar:javadoc -Dtransitive=true
1.0 (2021-01-15)
Enhancements:
- Initial Release