mvn clean package executes seven stages in order: clean, resources, compile, testResources, testCompile, test, and jar (packaging). mvn clean install performs eight stages in order: clean, resources, compile, testResources, testCompile, test, jar (package), and install. mvn clean deploy executes nine stages in order: clean, resources, compile, testResources, testCompile, test, jar (package), install, and deploy.
package command completes project compilation, unit testing, and packaging functions, but does not deploy the executed JAR packages (war packages or other types of packages) to the local maven repository and the remote maven private server repository install command completes the project compilation, unit testing, and packaging functions, and deploys the executable jar packages (war packages or other types of packages) to the local maven repository, but not to the remote maven private server repository deploy command completes the project compilation, unit testing, and packaging functions, and deploys the executed JAR packages (war packages or other types of packages) to the local MAVEN repository and the remote MAVEN private server repository
|