本文介绍了Mvn安装或Mvn包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我是Maven的新手,我有一个基于Java的web项目,我的MyEclipse中配置了maven。
现在如果我修改了任何java文件,那么我需要做运行as - > Mvn install
或 Mvn package
?
I am new to Maven, I have a Java based web project with maven configured in my MyEclipse.
Now if I modified any java files then do I need to do Run as -> Mvn install
or Mvn package
?
推荐答案
来自
install
:将软件包安装到本地存储库,用作本地其他项目中的
依赖项
install
: install the package into the local repository, for use as a dependency in other projects locally
所以答案就是你的问题是,这取决于您是否希望将其安装到您的本地仓库中。安装也将运行包,因为它在目标阶段堆栈中更高。
So the answer to your question is, it depends on whether you want it in installed into your local repo. Install will also run package because it's higher up in the goal phase stack.
这篇关于Mvn安装或Mvn包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!