If you need to trigger a download without running a full build, use these specific goals: Description Downloads all project dependencies to the local repository. mvn dependency:resolve Download Single Artifact
Downloads and saves JAR files to a specific directory (default: target/dependency ). mvn dependency:copy-dependencies download using maven
Downloading with Maven is typically an automated process triggered by standard build commands like mvn compile or mvn install . When Maven encounters a dependency in your pom.xml that is not in your local cache, it automatically fetches it from the Maven Central Repository or another configured remote repository. If you need to trigger a download without
Downloads all dependencies and plugins needed for the build to work without internet. mvn dependency:go-offline Downloads the source code JARs for your dependencies. mvn dependency:sources Configuration and Storage Locations Command to update repository after adding dependency to POM When Maven encounters a dependency in your pom
Downloads a specific JAR by coordinates (Group:Artifact:Version). mvn dependency:get -Dartifact=g:a:v
For more specific needs, such as downloading a single JAR or preparing for offline work, you can use targeted commands. Essential Maven Download Commands