Christopher Perry
Christopher Perry

Reputation: 39255

Maven: dependency on a third party jar not in central

I'm mavenizing RoboBillingLibrary and I've got a dependency on Amazon's in-app purchasing library that's not in Maven Central. What's the proper way to add the dependency (without submitting it to central myself)?

I have already installed it locally, and this works fine for me, but not so well for anyone who wants to use my library. Also, I'd like to deploy RoboBillingLibrary to central and this dependency is preventing me from doing so. I tried

mvn clean install 

from the parent directory just to see if I could install it and it complains:

Could not find artifact com.amazon:in-app-purchasing:jar:1.0.3 in

central

Upvotes: 0

Views: 632

Answers (1)

sherpya
sherpya

Reputation: 4936

mvn install:install-file -Dfile=in-app-purchasing-1.0.3.jar -DgeneratePom=true -Dpackaging=jar -Dversion=1.0.3 -DgroupId=in-app-purchasing -DartifactId=in-app-purchasing

change values according or use a pom file -DpomFile=pom.xml

Upvotes: 1

Related Questions