How to add Oracle to my dependencies from Maven.
Asked
Active
Viewed 52 times
2 Answers
2
Oracle JDBC Driver jars are not hosted on Maven Central due to license restrictions. You can find some jars in Maven Central but it's not guaranteed that they will work with your database version.
Instead You should download the right driver from the Oracle website (e.g. Oracle Database 12.1.0.1 JDBC Driver & UCP Downloads) and host it yourself (either in your local repo or with <system>scope</system>
dependency). Take a look at this answer which shows how to install the jar into local repo.

Karol Dowbecki
- 43,645
- 9
- 78
- 111