Skip to content
Advertisement

JOOQ Setup Oracle with Maven Code Generation

I am trying to setup an Oracle database with JOOQ on Maven for Code Generation. Currently trying to connect with Oracle Database JDBC.

https://www.jooq.org/doc/2.6/manual/code-generation/codegen-configuration/

The following example from resource is Postgresql. What is the syntax for Dependencies for Oracle setup?

<dependencies>
    <dependency>
      <groupId>org.postgresql</groupId>
      <artifactId>postgresql</artifactId>
      <version>9.4.1212</version>
    </dependency>
  </dependencies>

Advertisement

Answer

Newer versions of ojdbc are now on Maven Central, too, e.g.

<dependency>
  <groupId>com.oracle.database.jdbc</groupId>
  <artifactId>ojdbc11</artifactId>
  <version>21.1.0.0</version>
</dependency>

Please refer to Oracle’s documentation for more information.

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement