MAVEN中的插件放在哪个dependcies里面

如果你用maven来管理项目的话,你会发现你要依赖很多plugin,于是引出了一个问题。

一个project中可能有两个<dependcies>这个tag,

如下

<dependcies>

a

</dependcies>

<build>

<dependcies>

b

</dependcies>

</build>

这两个dependcies有什么区别呢?

在maven的官网上我找到了答案:

https://maven.apache.org/pom.html

在上面我用a和b代表两个位置的dependcies,

其中a的作用是指定 who,what,where(用什么插件做什么事)

b的作用是指定 when, how(配置使能,以及插件如何工作的,也就是说build里面的插件是辅助某个其它的插件来工作的,或者是辅助build用的)

 

posted on 2016-05-29 23:11  码农时刻  阅读(1038)  评论(0编辑  收藏  举报