What is the difference between “mvn deploy” to a local repo and “mvn install”?

前端 未结 3 527
無奈伤痛
無奈伤痛 2020-11-30 19:06

My team uses an internal team maven repo that is shared from a development server using Apache. We also run the Continuum CI server on the same machine. Maven builds in Cont

3条回答
  •  粉色の甜心
    2020-11-30 19:44

    From the Maven docs, sounds like it's just a difference in which repository you install the package into:

    • install - install the package into the local repository, for use as a dependency in other projects locally
    • deploy - done in an integration or release environment, copies the final package to the remote repository for sharing with other developers and projects.

    Maybe there is some confusion in that "install" to the CI server installs it to it's local repository, which then you as a user are sharing?

提交回复
热议问题