How to add Oracle JDBC driver in your Maven local repository

Here’s a simple guide to show you how to add an Oracle JDBC driver into your Maven local repository, and also how to reference it in pom.xml Tested with Oracle database 19c and Java 8 Note Due to Oracle license restrictions, the Oracle JDBC driver is not available in the public Maven repository. To use …

Read more

Where is Maven local repository?

By default, Maven local repository is defaulted to ${user.home}/.m2/repository folder : Unix/Mac OS X – ~/.m2/repository Windows – C:\Users\{your-username}\.m2\repository When we compile a Maven project, Maven will download all the project’s dependency and plugin jars into the Maven local repository, save time for next compilation. 1. Find Maven Local Repository 1.1 If the default .m2 …

Read more