How to add local jar files to a Maven project?

Imagine that you have implemented your java jar library and you need to connect it. Here are some examples of how to do it.

1. Manually install jar into local maven repository

You need run this command on console:

After sucessfull execution, you can use your jar library as a usual dependency.

2. Add local dependency directly

You can use point local address to file in a dependency  section.

 

Related Post

One Comment on “How to add local jar files to a Maven project?”

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.