I have a load of 3rd party JAR files (around 40 different JARs from various SDKs I'm using) sitting in a folder on my hard drive. I want to declare those JARs as dependencies in my future maven projects.
I cannot obtain those JARs from the worldwide global maven repository as you could with e.g. Log4J, JUnit, Velocity etc, since they are not available there.
How do I get these JAR files from my local folder into my company global (but internal) maven repository (Nexus)? What would be the necessary steps? The best solution would be a programmatical one, if that's possible at all.
I'm confused that I could not find any solution to my problem using Google, because I imagine this to be a very widespread problem. So maybe I'm thinking in a wrong direction.
Thank you very much!
You can install the libraries to your local repository with the maven-install-plugin (install-file
goal - see example).
You can deploy the libraries to your remote repository (Nexus) with the maven-deploy-plugin (deploy-file
goal - see example).
You can also use the Nexus web application to upload the libraries to nexus (see Nexus Book - Uploading Artifacts).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With