Mvn install or Mvn package

后端 未结 8 1276
清歌不尽
清歌不尽 2020-12-07 13:41

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 in

8条回答
  •  情话喂你
    2020-12-07 14:12

    Also you should note that if your project is consist of several modules which are dependent on each other, you should use "install" instead of "package", otherwise your build will fail, cause when you use install command, module A will be packaged and deployed to local repository and then if module B needs module A as a dependency, it can access it from local repository.

提交回复
热议问题