Maven, how to add additional libs not available in repo
maven-2, pom.xml
Solution
You have 3 options:
- Add your libraries to your local repository via `install:install-file` (obviously, this is not portable, you won't be able to build the project on another machine without doing the same).
- Install and run an "enterprise repository" like Nexus, Archiva, or Artifactory and add your libraries via `deploy:deploy-file`.
- Setup a file based repository as described in this previous answer and put your libraries in there.
Then, declare your libraries in your pom like any other dependency.
Problem
I have a maven project that has a set of library dependancies that are not available via any maven repository. How can I add those libraries to the pom? I want to do this so when I run 'mvn eclipse:eclipse' it doesnt remove those libraries from the eclipse classpath.