Tuesday, July 15, 2014

How to add external libraries in Maven?


The best solution I found was to create an in project repository. The idea is your will create a library folder inside your project. You’ll configure your pom to point to the repository and it will act as a normal maven repository.
To get started first you need to create a library folder under your project, I’ll call this folder libs (make sure it’s in the same folder as your pom). Then you create a sub folder structure under libs and name your library using the following convention.
/groupId/artifactId/version/artifactId-verion.jar
I’ve created the following structure for dropbox sdk library

No comments:

Post a Comment