Learn maven command

mvn clean package sequentially performed clean, resources, compile, testResources, testCompile, test, jar ( package) seven stages.
mvn clean install sequentially performed clean, resources, compile, testResources, testCompile, test, jar ( package), install eight stages.
mvn clean deploy sequentially performed clean, resources, compile, testResources, testCompile, test, jar ( package), install, deploy nine stages.


From the above analysis of the key differences,

package command completion of the project compilation, unit testing, functional package, but did not lay executable jar package (war package or other forms of package) deployed to remote and local maven repository maven PW warehouse
install command completed a project to compile, unit testing, packaging functions, while the beaten executable jar package (war package or other forms of package) deployed to the local maven repository, but not deployed to the remote maven PW warehouse
deploy command to complete the project compilation, unit testing, Packing function, while the lay-executable jar package (war or other form of package bag) and deployed to the local repository maven remote repository maven PW

Guess you like

Origin www.cnblogs.com/fantjesse/p/12110780.html