I've added a new dependency to my POM.
Is there a simple command I can run to download this dependency to my repository?
If you have only the standard maven plugins from the default superpom, adding a dependency will: download the specified version to your local repository. use it to compile. use it to run tests.
Click settings and search for "Repositories", then select the local repo and click "Update". That's all.
If you want to only download dependencies without doing anything else, then it's:
mvn dependency:resolve
Or to download a single dependency:
mvn dependency:get -Dartifact=groupId:artifactId:version
If you need to download from a specific repository, you can specify that with -DrepoUrl=...
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