Assume I have the jar under the target folder: Is there any option in maven to install into local repository jar without executing previous phases (compile, package)?
Simply do mvn install:install
instead of mvn install
.
Taken form 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 the pom and once for the jar.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With