Are the latest Oracle 12c Release 2 JDBC driver and UCP available via maven?

懵懂的女人 提交于 2019-12-23 17:17:56

问题


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".


回答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>



回答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.



来源:https://stackoverflow.com/questions/42886636/are-the-latest-oracle-12c-release-2-jdbc-driver-and-ucp-available-via-maven

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!