mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
31 lines
863 B
Plaintext
31 lines
863 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, common]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# mvn dependency
|
|
|
|
> Manage and analyze Maven project dependencies.
|
|
> Provides goals for viewing, resolving, and copying project dependencies.
|
|
> More information: <https://maven.apache.org/plugins/maven-dependency-plugin/usage.html>.
|
|
|
|
- Display the full dependency tree, including direct and transitive dependencies:
|
|
|
|
`mvn dependency:tree`
|
|
|
|
- Analyze the dependencies and highlight unused or undeclared ones:
|
|
|
|
`mvn dependency:analyze`
|
|
|
|
- Copy all project dependencies (by default, to `target/dependency/`):
|
|
|
|
`mvn dependency:copy-dependencies`
|
|
|
|
- Resolve and download all project dependencies to the local Maven repository:
|
|
|
|
`mvn dependency:resolve`
|
|
|
|
- Force Maven to update all dependencies from remote repositories:
|
|
|
|
`mvn dependency:resolve {{[-U|--update-snapshots]}}`
|