Skip to content

Instantly share code, notes, and snippets.

@FibreFoX
Created October 17, 2019 11:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FibreFoX/d9a5b9ad39efef0123f92f5626e9dd77 to your computer and use it in GitHub Desktop.
Save FibreFoX/d9a5b9ad39efef0123f92f5626e9dd77 to your computer and use it in GitHub Desktop.
In-project Maven Repository (for private libs)
<!-- create "private_libs" as folder and put your private maven-dependencies there -->
<repositories>
<!-- in project repository, mostly for private libs -->
<repository>
<id>in-project</id>
<name>In Project Repo</name>
<url>file://${project.basedir}/private_libs</url>
<snapshots>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</snapshots>
<releases>
<enabled>true</enabled>
<updatePolicy>always</updatePolicy>
</releases>
</repository>
</repositories>
@FibreFoX
Copy link
Author

This is useful in cases you need to add (transitive) dependencies to your project without the need to expose too much of your infrastructure to the other party working with your projects.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment