[ https://issues.apache.org/jira/browse/HIVE-27338?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated HIVE-27338: ---------------------------------- Labels: pull-request-available (was: ) > JDBC drivers are transitively inherited although declared optional > ------------------------------------------------------------------ > > Key: HIVE-27338 > URL: https://issues.apache.org/jira/browse/HIVE-27338 > Project: Hive > Issue Type: Bug > Components: Standalone Metastore > Affects Versions: 4.0.0-alpha-2 > Reporter: Stamatis Zampetakis > Assignee: Stamatis Zampetakis > Priority: Major > Labels: pull-request-available > Time Spent: 10m > Remaining Estimate: 0h > > The JDBC driver dependencies are declared optional (HIVE-25701) because we > don't really need them and it is up to the end-user to decide which DBMS they > will use and pick the appropriate driver for their use case. > Also declaring them as > [optional|https://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html] > should stop their transitive propagation to 3rd-party projects that depend > on Hive modules. > Currently the optional declaration is in the respective > {{dependencyManagement}} sections of the project: > * > https://github.com/apache/hive/blob/dd8a867386b605ecd7e8dbec476556bf24f54c6f/pom.xml#L1323 > * > https://github.com/apache/hive/blob/dd8a867386b605ecd7e8dbec476556bf24f54c6f/standalone-metastore/pom.xml#L352 > However due to MNG-5227, the optional declaration in the > {{dependencyManagement}} has no effect so JDBC dependencies are transitively > propagated to every module that depends on some Hive module with a JDBC > driver dependency. > Till MNG-5227 is fixed we will need to include optional in every explicit > declaration of the dependency. -- This message was sent by Atlassian Jira (v8.20.10#820010)