Package maven command difference
mvn clean package
Followed by the implementation of clean
, resource
, compile
, testResources
, testCompile
, test
, jar
(packing) seven stages
package command completion of the project compilation, unit testing, functional package, but not the beaten deploy the package to the local maven repository and remote maven PW warehouse
mvn clean install
Are sequentially performed clean
, resource
, compile
, testResources
, testCompile
, test
, jar
(packing), install
eight stages
install command completed a project to compile, unit test, package functions, while the beaten deploy the package to a local warehouse, but did not deploy to a remote repository maven PW
mvn clean deploy
Followed by the implementation of clean
, resource
, compile
, testResources
, testCompile
, test
, jar
(packaged), install
, deploy
nine stages
deploy command completed a project to compile, unit test, package it functions, while the beaten deploy the package to the local maven repository and remote maven PW warehouse