Package maven command difference package, install, deploy the

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), installeight 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, deploynine 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

Guess you like

Origin www.cnblogs.com/codeclock/p/12106519.html