-
Notifications
You must be signed in to change notification settings - Fork 453
Downloading Driver Dependencies
David Engel edited this page Jun 16, 2023
·
6 revisions
To get all driver dependencies, git, maven and an appropriate JDK version must all be installed on your machine.
- Clone mssql-jdbc repo
git clone https://github.com/microsoft/mssql-jdbc.git
- Goto the project root
cd /path/to/where/you/cloned/the/driver/project/mssql-jdbc
-
The pom.xml file contains all dependencies of the driver in the
<dependencies>...</dependencies>block. Use maven to download all the dependencies totarget/dependencyfolder.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
- Dependent libraries will be downloaded and copied to the
target/dependencysubfolder. 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.