There may be situations where a library, which is not present in any Maven repository, needs to be used. We have seen one way to use it, that is, specifying it as a dependency with
system scope and explicitly specifying the path to it.
The problem with this approach is that this dependency will not be available if you need to distribute your project as a library.
Maven provides a mechanism to install an artifact to your local repository so that you can declare and use it like other dependencies.
Use the following steps to manually install the dependencies that aren't available in a repository: