Dependency management plugin
Maven dependencies have six possible scopes: maven依赖的6个有效范围
Compile: This is the default scope. Compile dependencies are available in
the classpaths.
Provided: This scope assumes that the JDK or the environment provides
dependencies at runtime.
Runtime: Dependencies that are required at runtime and are specifed in the
runtime classpaths.
Test: Dependencies required for test compilation and execution.
System: Dependency is always available, but the JAR is provided nonetheless.
Import: Imports dependencies specifed in POM included via the
<dependencyManagement/> element.
我们在pom中可以引入dependency管理插件
官方提供的插件:
https://maven.apache.org/plugins/
可以使用如下命令查看mvn关于插件的说明
mvn help:describe -Dplugin=org.apache.maven.plugins:maven-source-plugin:2.1.1