MVN安装VS罐子:罐子 [英] mvn install vs jar:jar

查看:188
本文介绍了MVN安装VS罐子:罐子的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是之间的区别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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆