How To Install A Maven Artifact Into Your Local Repository

For example, y'all are working on a maven projection application that integrates alongside paypal. You download paypal sdk (jars),  but you don't convey whatever repository director installed/setup on your local machine.

What y'all tin laissez passer the sack create are:
1.) Include the jounce every moment a scope=system as well as specify the path (not adviseable).

2.) Install the jounce on your repository director (if y'all have).

3.) If y'all don't convey a repository manager, receive the next ascendency on the ascendency prompt, it volition install the jounce inwards 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
Next
Previous
Click here for Comments

0 komentar:

Please comment if there are any that need to be asked.