Suppose I have a jar under the target folder: is there any parameter in maven to install the local repository in the bank without performing the previous steps (compilation, package)?
Just mvn install:install instead of mvn install .
mvn install:install
mvn install
Adapted from the documentation :
mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> \ -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging>
you need to run this once for pom and once for jar.