Are the latest Oracle 12c Release 2 JDBC driver and UCP available via maven?
Solution 1
12.2.0.1 JDBC driver and UCP are available on Oracle Maven Repository. You can use the GAV details below to download the same.
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ojdbc8</artifactId>
<version>12.2.0.1</version>
</dependency>
<dependency>
<groupId>com.oracle.jdbc</groupId>
<artifactId>ucp</artifactId>
<version>12.2.0.1</version>
</dependency>
Solution 2
I asked this in a (private) Service Request with Oracle and got the following answer from them last week:
[...]
We still haven’t uploaded the 12.2 JDBC driver on Oracle Maven. We will do it in a few weeks.
[...]
I'll update this answer as soon as I get hold of the GAV parameters.
Dallas
IT Engineer located in Luxembourg, working in the Banking sector. Experienced in full-stack application development, primarily in Java.
Updated on August 03, 2022Comments
-
Dallas almost 2 years
Oracle corporation released a new version 12.2.0.1 of their JDBC driver, for Oracle Database 12c Release 2.
The JAR files can be manually downloaded from this location: http://www.oracle.com/technetwork/database/features/jdbc/jdbc-ucp-122-3110062.html
But are these JAR files available through the Oracle Maven repository at maven.oracle.com?
I setup my build originally following this Oracle Blog: Get Oracle JDBC drivers and UCP from Oracle Maven Repository (without IDEs) and have the ojdbc7.jar and ucp.jar as dependency
<dependency> <groupId>com.oracle.jdbc</groupId> <artifactId>ojdbc7</artifactId> <version>12.1.0.2</version> </dependency> <dependency> <groupId>com.oracle.jdbc</groupId> <artifactId>ucp</artifactId> <version>12.1.0.2</version> </dependency>
Now I want to upgrade to the new ojdbc8.jar and latest ucp.jar but don't know the coordinates (and maven.oracle.com does not provide browsing). I could not resolve "com.oracle.jdbc:ojdbc8:12.2.0.1" or "com.oracle.jdbc:ucp:12.2.0.1".
-
jansohn over 6 yearsNo, my SR never got updated. But you can use the one's provided by the accepted answer, they are correct.
-
vashishth over 6 yearsthanks, i am able to download the ojdc8 from oracle maven repo.
-
J. Abel almost 6 yearsHi, I got the message : 'Could not resolve dependencies for project gov.dgr:Proyect:jar:0.0.1-SNAPSHOT: Could not find artifact com.oracle.jdbc:ojdbc8:jar:12.2.0.1 in spring-milestone (repo.spring.io/milestone) -> [Help 1]' The Help1 link is: cwiki.apache.org//confluence/display/MAVEN/… Does Someone get the same message?