The Maven plugin for working with a project's dependencies: it displays the dependency tree, analyzes declared and
used dependencies, copies and unpacks artifacts, builds class paths, resolves artifacts without a project, and adds or
removes dependencies in a pom.xml. It requires Maven 3.9.0 or later and Java 8 or later.
mvn dependency:tree
mvn dependency:analyze
mvn dependency:copy-dependencies -DincludeScope=runtime
mvn dependency:get -Dartifact=org.apache.commons:commons-collections4:4.4- Documentation: https://maven.apache.org/plugins/maven-dependency-plugin/
- Issues: https://github.com/apache/maven-dependency-plugin/issues
- Security reports: see SECURITY.md; never a public issue
- Agents and contributors: see AGENTS.md
Build and run the unit tests:
mvn verifyRun the integration tests in src/it as well, all of them or one by name:
mvn -Prun-its verify
mvn -Prun-its verify -Dinvoker.test=tree-show-sizesBuild the site into target/site:
mvn -DskipTests install siteOpen a pull request against master with a test that covers the change, and run mvn spotless:apply before you
commit. Discuss larger changes on the developer mailing list first.
See the guide to helping with Maven for more.