Maven - install without compilation

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)?

+4
source share
2 answers

Just mvn install:install instead of mvn install .

+8
source

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.

+4
source

All Articles