-
Notifications
You must be signed in to change notification settings - Fork 427
Download Azure Identity And AKV Dependencies with Apache Maven
lilgreenbird edited this page Sep 15, 2020
·
1 revision
The Microsoft JDBC Driver for SQL Server has 2 compile time dependencies:
-
azure-security-keyvault
: Azure Key Vault Secret client library for Java for Always Encrypted Azure Key Vault feature (optional). -
azure-identity
: Azure Identity client library for Java for Azure Active Directory Authentication feature and Azure Key Vault feature (optional).
Those 2 dependencies are not required at run time if users do not use Azure Key Vault or Azure Active Directory Authentication. However, if users want to use those features, they need to download the dependencies and include them into their classpath.
- Download and install Apache Maven
- Download the Microsoft JDBC Driver for SQL Server from GitHub, there is a file called pom.xml in the root directory. It contains all the dependency definitions
- In pom.xml file, all dependencies are listed in
<dependencies>...</dependencies>
block. Comment out all test dependencies and keepazure-security-keyvault
andazure-identity
intact. In this case, it will download bothazure-security-keyvault
andazure-identity
and their dependencies as well. - Open Terminal/CMD and
cd
to the directory that contains pom.xml, run command<maven_installation_path>/bin/mvn dependency:copy-dependencies
. It will download all the dependencies intotarget/dependency
folder. Now, you have all the dependencies you need to use Azure Key Vault and Azure Active Directory Authentication feature