What exactly are the differences between mvn clean package and mvn clean install? When I run both of these commands, they both seem to do the same
mvn clean package
mvn clean install
package will generate Jar/war as per POM file. install will install generated jar file to the local repository for other dependencies if any.
install phase comes after package phase