---
schema_version: "1"
id: 1d3e72ff0412dd56041f5a164fe2b07125367081797347edc8f7a93f323a1031
title: Configure Driver Visibility using Mule Maven Plugin
collection: mulesoft
version: current
locale: en-us
portal_url: https://docs.salesforce.com/mulesoft/current/en-us/db-connector/1.15/database-connector-driver-configuration.md
canonical_url: https://docs.mulesoft.com/db-connector/1.15/database-connector-driver-configuration
source_site: docs.mulesoft.com
content_type: documentation
content_hash: da2bdb4ffe2db408356591d685802e600c467cae84ea2c4a44f106ff338d5ab3
description: MuleSoft Documentation Site
release: "1.15"
latest: false
---
---
product: Database Connector
version: 1.15
---

# Configure Driver Visibility using Mule Maven Plugin

> For the full documentation index, see: https://docs.mulesoft.com/llms.txt

Although Anypoint Studio enables you to configure database driver dependencies without problems in
most cases, there are some scenarios where you must use the Mule Maven Plugin to properly set up the
driver classes' visibility because of class loading isolation mechanisms.

## Configure Driver Visibility Across the Application

To configure additional database driver dependencies and make the driver visible across components
within your Mule application, refer to the
[Configure Shared Libraries](https://docs.mulesoft.com/mule-runtime/latest/mmp-concept#configure-shared-libraries)
section in the Mule Maven Plugin documentation.

## Configure Driver Visibility Only for the Connector

When there is a risk of dependencies colliding and it’s necessary to have the Database Connector and
the driver’s dependencies in the same class loader, to make the driver visible only for the
connector, refer to the
[Configure Additional Plugin Dependencies](https://docs.mulesoft.com/mule-runtime/latest/mmp-concept#configure-plugin-dependencies)
section in the Mule Maven Plugin documentation.

> [!NOTE] Be aware of which component must establish the connection with the database, as the driver
> must be in the scope of that component’s class loader. For example, if a Mule application uses a
> datasource reference connection and targets a Spring bean datasource definition, it is the
> Spring’s class loader that requires the database library, not the database. Configure additional
> application dependencies using _shared libraries_.

## See Also

- [Mule Maven Plugin](https://docs.mulesoft.com/mule-runtime/latest/mmp-concept)

- [Database Connector Reference](https://docs.mulesoft.com/db-connector/1.15/database-documentation)

- [Salesforce Help](https://help.salesforce.com)
