To install a Maven library while running a Databricks notebook using a new job cluster through Azure Data Factory, you can follow these steps:
Open your Azure Data Factory instance and go to the "Author & Monitor" section.
Navigate to the pipeline where you want to configure the library installation.
In the pipeline, locate the Databricks notebook activity that you want to run.
Within the Databricks notebook activity, expand the "Advanced" settings.
In the "Advanced" settings, locate the "Libraries" section.
Within the "Libraries" section, click on the "Linked service" drop-down menu and select the linked service associated with your Databricks workspace.
Once the linked service is selected, you will see the option to specify the libraries to be installed. Click on the "Add library" button.
In the library configuration dialog, choose the "Maven" option.
Specify the Maven coordinates for the library you want to install, including the group ID, artifact ID, version, and any other relevant details.
Click on the "OK" button to save the library configuration.
Save and publish the changes to the pipeline.
By specifying the library installation at the linked service level, the library will be automatically installed whenever the Databricks notebook activity runs using the job cluster. This way, you won't need to update individual activities, making it easier to manage library dependencies across multiple pipelines and notebooks.