I want to do this because when I try to download the sources for a dependency with Eclipse it just does nothing and I want to know what's going on.
I read some posts and articles:
But none of these shows how to do this for a single dependency..
If I do it for all the dependecies in my project it may take a while and it is not what I want.
I want to execute a command like this:
mvn dependency:sources
But applied to only one of the project dependencies.
Is this possible?
I just found out how to do this in the plugin's documentation:
http://maven.apache.org/plugins/maven-dependency-plugin/sources-mojo.html
I solved this using the following command:
mvn dependency:sources -DincludeGroupIds=com.example.api.agents -DincludeArtifactIds=api-agent-spark
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With