I need for specific dependencies documentation, for some documentation and source code. What is the best way to tell maven to do that?
Firstly, IntelliJ should automatically download sources for you although sometimes you may need to click on 'Download Source'. This actually uses Maven to fetch the source and javadoc.
If you want to do it with the Maven command line an example of a command that downloads javadoc for a specific artifact is:
mvn dependency:sources -Dclassifier=javadoc -DincludeArtifactIds=<my-artifact>
If you need both the source and javadoc just remove the javadoc classifier.
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