Dependency插件可以操作Maven构件(artifact),如复制并解压缩本地或远程Maven库中的构件到某个指定路径。Dependency插件的最新版本是2015.1.24发布的2.10。
Dependency插件提供了大量的goals,常用的如下:
- dependency:analyze analyzes the dependencies of this project and determines which are: used and declared; used and undeclared; unused and declared.
- dependency:display-ancestors displays all ancestor POMs of the project. This may be useful in a continuous integration system where you want to know all parent poms of the project. This goal can also be run from the command line.
- dependency:list alias for resolve that lists the dependencies for this project.