Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Oracle JDBC drivers in Maven - please set dependent jars as optional

Arend v. ReinersdorffFeb 25 2016 — edited Feb 29 2016

Hi,

Oracle recently made the Oracle JDBC drivers availabe in an official Maven repository. Which is great :-)

https://blogs.oracle.com/dev2dev/entry/how_to_get_oracle_jdbc

One issue:

Note that OJDBC7.jar will download all the dependent jar files such as osdt_core.jar, xdb6.jar, xmlparserv2.jar etc.

Why? These six jars are not needed for normal use of the JDBC driver, only for specific functionality. They are also not part of the normal Oracle JDBC driver download:

http://www.oracle.com/technetwork/database/features/jdbc/default-2280470.html

I would expect dependent jars for specific functionality to be marked as <optional>true</optional> in Maven. So they are not downloaded by default.

Is there any reason that these dependent jars are downloaded by default with the Oracle JDBC driver?

If not, could they please be set as optional?

Best regards,

Arend

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 28 2016
Added on Feb 25 2016
3 comments
3,722 views