Mvn install or Mvn package

后端 未结 8 1278
清歌不尽
清歌不尽 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条回答
  •  猫巷女王i
    2020-12-07 14:06

    If you're not using a remote repository (like artifactory), use plain old: mvn clean install

    Pretty old topic but AFAIK, if you run your own repository (eg: with artifactory) to share jar among your team(s), you might want to use

    mvn clean deploy

    instead.

    This way, your continuous integration server can be sure that all dependencies are correctly pushed into your remote repository. If you missed one, mvn will not be able to find it into your CI local m2 repository.

提交回复
热议问题