1. 程式人生 > >maven常用plugin

maven常用plugin

nts -s execution tps blog ports none exec scribe

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 

maven常用plugin