Manually Adding Oracle JDBC to Maven Repo

Thanks to Oracle, Oracle JDBC jars cant be downloaded from maven repositories… therefore, your pom will through this error :

Missing artifact


Find specific version on the Oracle site or download from others sites like this.

Then place in your .m2 folder and refresh your pom.


Maven will magically resolve the other related files such as the repository file, pom file e.t.c:

or you can manually cd to the downloaded location and lunch the maven command to install 3rd party libraries:

mvn install:install-file -Dfile=<path-to-file> -DgroupId=<group-id> -DartifactId=<artifact-id> -Dversion=<version> -Dpackaging=<packaging> -DgeneratePom=true

Leave a Reply