码迷,mamicode.com
首页 > 其他好文 > 详细

maven常用plugin

时间:2018-03-13 00:55:22      阅读:161      评论:0      收藏:0      [点我收藏+]

标签:env   always   execution   def   VID   spec   efault   post   color   

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

标签:env   always   execution   def   VID   spec   efault   post   color   

原文地址:https://www.cnblogs.com/ennish/p/7954031.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!