Oracle has license restriction and there is no public Maven repository that provides Oracle JDBC driver. We have to install it manually into our local Maven repo. Steps:

1. Download Oracle JDBC driver from official Oracle website.

2. Install it in your local Maven repo using this console command:

mvn install:install-file -Dfile={Location/of/ojdbc.jar} -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0 -Dpackaging=jar

3. Add dependency to your pom.xml:

<dependency>

<groupId>com.oracle</groupId>

<artifactId>ojdbc6</artifactId>{jcomments on}

<version>11.2.0</version>

</dependency>

Newsletter

Please enable the javascript to submit this form