MVN安装VS罐子:罐子 [英] mvn install vs jar:jar
问题描述
什么是之间的区别MVN安装命令,与使用的jar:罐子插件
What is the difference between the "mvn install" command, versus the use of the jar:jar plugin ?
它明确指出,安装似乎建立一个罐子,所以,我想知道是否需要的jar什么:Jar插件会。
Its clear that "install" seems to build a jar, and so, I am wondering what the need for the jar:jar plugin would be.
推荐答案
MVN安装
命令将执行的的 Maven的生命周期的到的安装的阶段。
这意味着所有的previous阶段将被执行(包括包的阶段)。
mvn install
command will "execute" the maven lifecycle up to the install phase.
It means that all previous phases will be executed (including the package phase).
在一个简单的Maven JAR项目,包相结合的Maven的JAR-插件。所以,在执行 MVN安装
将在某个时候执行罐子:罐子
。
On a simple maven jar project, the package phase is bind to the maven-jar-plugin. And so executing mvn install
will execute at some point jar:jar
.
这篇关于MVN安装VS罐子:罐子的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!