mvn clean install vs. deploy vs. release

后端 未结 2 1272
挽巷
挽巷 2020-12-22 15:21

I am just learning maven, and we have recently needed to go more and more. I would like to know the difference between

mvn clean install

2条回答
  •  粉色の甜心
    2020-12-22 15:56

    • mvn install will put your packaged maven project into the local repository, for local application using your project as a dependency.
    • mvn release will basically put your current code in a tag on your SCM, change your version in your projects.
    • mvn deploy will put your packaged maven project into a remote repository for sharing with other developers.

    Resources :

    • Maven install plugin
    • Maven release plugin
    • Maven deploy plugin

提交回复
热议问题