In fact, a simple solution would be to place your personal library in your project (for example, <project>/lib/library-1.0.jar) and include it as a system dependency, you can include it in your pom, like.
<dependencies>
<dependency>
<groupId>my.private</groupId>
<artifactId>library</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${project.basedir}/lib/library-1.0.jar</systemPath>
</dependency>
</dependencies>
Caution : system dependency is not transitive!
From the documentation
This area is similar to the one provided, except that you must provide a JAR that contains this explicitly. The artifact is always available and cannot be viewed in the repository.
source
share