How to install a maven artifact into your local repository
For example, you are working on a maven project application that integrates with paypal. You download paypal sdk (jars), but you don't ...
https://www.czetsuyatech.com/2012/12/maven-install-local-maven-artifact.html
For example, you are working on a maven project application that integrates with paypal. You download paypal sdk (jars), but you don't have any repository manager installed/setup on your local machine.
What you can do are:
1.) Include the jar as a scope=system and specify the path (not adviseable).
2.) Install the jar on your repository manager (if you have).
3.) If you don't have a repository manager, try the following command on the command prompt, it will install the jar in your local repository (normally ~/.m2/repository).
What you can do are:
1.) Include the jar as a scope=system and specify the path (not adviseable).
2.) Install the jar on your repository manager (if you have).
3.) If you don't have a repository manager, try the following command on the command prompt, it will install the jar in your local repository (normally ~/.m2/repository).
mvn3 install:install-file -Dfile=merchant-java-sdk_1.2.95.jar -DgroupId=com.paypal.sdk -DartifactId=merchant-java-sdk -Dversion=1.2.95 -Dpackaging=jar
Post a Comment