基础命令
拷贝依赖的jar
拷贝依赖的jar包到target-dependencies
可指定目录-DoutputDirectory=lib
1 2 3 4 5 6 7 8
| #scope #runtime : scope gives runtime and compile dependencies, #compile : scope gives compile, provided, and system dependencies, #test (default) : scope gives all dependencies, #provided : scope just gives provided dependencies, #system : scope just gives system dependencies.
mvn dependency:copy-dependencies -DincludeScope=compile -DoutputDirectory=lib
|