Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maven repository for PayPal java API

I migrate a eclipse based project to maven based one.

    <dependency>
        <groupId>com.paypal.sdk</groupId>
        <artifactId>paypal-base</artifactId>
        <version>1.4.4</version>
    </dependency>

I need version 1.4.4 or later (because the original jar file we were using was version 1.4.4). But in public repositories I find only version 1.0.0.

EDIT: We solved this problem while ago by set-uping private repo. Seems that PayPal have finally uploaded their API jars in the official maven repo.

like image 477
Kiril Kirilov Avatar asked Mar 21 '12 10:03

Kiril Kirilov


1 Answers

The Maven way of solving this kind of problem is to set up your own Maven repository (e.g. Sonatype Nexus). Then you can upload the artifacts you need.

The "quick and dirty" solution would be to copy the required Jar file into a folder and include this file as dependency by using the scope "system" (see Maven documentation)

like image 194
problemzebra Avatar answered Nov 15 '22 07:11

problemzebra