是否可以通过maven获得最新的Oracle 12c第2版JDBC驱动程序和UCP? [英] Are the latest Oracle 12c Release 2 JDBC driver and UCP available via maven?
问题描述
Oracle公司针对Oracle Database 12c第2版发布了其JDBC驱动程序的新版本12.2.0.1.
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
但是可以通过maven.oracle.com上的Oracle Maven存储库获得这些JAR文件吗?
我最初是根据此Oracle Blog设置我的构建的:从Oracle Maven获取Oracle JDBC驱动程序和UCP存储库(不带IDE),并将ojdbc7.jar和ucp.jar作为依赖项
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>
现在,我想升级到新的ojdbc8.jar和最新的ucp.jar,但不知道坐标(并且maven.oracle.com不提供浏览).我无法解析"com.oracle.jdbc:ojdbc8:12.2.0.1"或"com.oracle.jdbc:ucp:12.2.0.1".
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".
推荐答案
12.2.0.1 JDBC驱动程序和UCP在Oracle Maven存储库中可用. 您可以使用下面的GAV详细信息下载相同的内容.
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>
这篇关于是否可以通过maven获得最新的Oracle 12c第2版JDBC驱动程序和UCP?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!