How to add local jar files to a Maven project?

By | October 31, 2020

This post talks about adding local jar files to a Maven project? 

For those artifacts or libraries that are not available in the Maven Central or other Maven repositories, we have to configure it into our Maven Local repository in order to use it as a project dependency.

We can add local dependencies directly like this:

Let’s assume We have a library SampleApp-1.0.jar on my local machine/shared path that I would like to use as a dependency, We have to configure this dependency as follows in our pom.xml


 That’s all about adding local jar files to a Maven project? 
If you have any feedback or suggestion please feel free to drop in below comment box.

Leave a Reply

Your email address will not be published. Required fields are marked *