raven-king
raven-king

Reputation: 1550

Add Maven dependencies to local repo from a folder

I have a folder containing libraries which I ripped from a Maven repository and need to be able to load them into my local repository. Because they were extracted from Maven using the dependency:copy-dependencies goal they all have their artifact and version number as part of the file name. Most of these a proprietary libraries so I cannot just fetch them again from a global repository.

Any Ideas?

JLove

Upvotes: 0

Views: 487

Answers (2)

khmarbaise
khmarbaise

Reputation: 97349

Best things for such purposes is to install a repository manager and install such kind of libraries into the repository manager. Afterwards you can use them as usual dependencies.

Upvotes: 0

codeghost
codeghost

Reputation: 1024

Are you asking how to intall them in your local repo, or how to make them available to maven from the project? If the former just look at the docs for mvn install:install:file if the latter I wrote a blog post on a way to package project local maven dependencies http://codeghost.co.uk/blog/2012/8/15/environment-agnostic-non-public-maven-library-references.html

Upvotes: 1

Related Questions