Skip to content

Downloading Driver Dependencies

David Engel edited this page Jun 16, 2023 · 6 revisions

Prerequisites

To get all driver dependencies, git, maven and an appropriate JDK version must all be installed on your machine.

Download Driver Dependencies

  1. Clone mssql-jdbc repo
git clone https://github.com/microsoft/mssql-jdbc.git
  1. Goto the project root
cd /path/to/where/you/cloned/the/driver/project/mssql-jdbc
  1. The pom.xml file contains all dependencies of the driver in the <dependencies>...</dependencies> block. Use maven to download all the dependencies to target/dependency folder.

    Please make sure to use the pom.xml associated with the version of the driver as you need the correct version of the dependent libraries for the release you are using to ensure correct functionality of the driver.

   <maven_installation_path>/bin/mvn dependency:copy-dependencies
  1. Dependent libraries will be downloaded and copied to the target/dependency subfolder. Add them to the CLASSPATH of your user application. This could be as simple as dropping them into a lib folder, but that depends on how the application is configured.

Clone this wiki locally