Oracle ojdbc8 12.2.0.1 Forbidden by Maven

Stéphane GRILLON picture Stéphane GRILLON · Jan 4, 2018 · Viewed 44.1k times · Source

Oracle ojdbc8 12.2.0.1 Forbidden by Maven since December 2017, before that worked well. What configuration has changed on the Oracle repository (setting.xml)?

Maven project: https://github.com/sgrillon14/MavenSampleOracleJdbc

Full trace: https://travis-ci.org/sgrillon14/MavenSampleOracleJdbc

Answer

Vimala picture Vimala · Aug 6, 2019
  1. Since Oracle JDBC Driver is not in Maven repository, Download ojdbc8.jar and run the below command.
mvn install:install-file -Dfile=/home/cm/Videos/ojdbc8.jar -DgroupId=com.oracle -DartifactId=ojdbc8 -Dversion=12.1.0.2 -Dpackaging=jar
  1. Add this dependency in pom.xml
<dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc8</artifactId>
    <version>12.1.0.2</version>
</dependency>