Now you can import a Java library from a GitHub repo using JitPack.
In your pom.xml:
- Add repository:
jitpack.io
https://jitpack.io
- Add dependency
com.github.User
Repo name
Release tag
It works because JitPack will check out the code and build it. So you'll end up downloading the jar.
If the project doesn't have a GitHub release then its possible to use a commit id as the version.