-
Notifications
You must be signed in to change notification settings - Fork 426
Downloading Driver Dependencies
To get all driver dependencies, maven and an appropriate JDK version must all be installed on your machine.
-
Browse to https://github.com/microsoft/mssql-jdbc/blob/v12.2.0/pom.xml, and select the version-appropriate tag matching your driver version.
Or go to
https://raw.githubusercontent.com/microsoft/mssql-jdbc/v<Major>.<Minor>.<Revision>/pom.xml
, replacing the<Major>
,<Minor>
, and<Revision>
with the relevant numbers for your driver version. Example: https://raw.githubusercontent.com/microsoft/mssql-jdbc/v12.2.0/pom.xmlDownload/Save the pom.xml file to an empty folder.
-
Open a command prompt and change to the folder you saved the pom.xml
cd /path/to/where/you/saved/the/pom.xml/
-
The pom.xml file contains all dependencies of the driver in the
<dependencies>...</dependencies>
block. Use maven to download all the dependencies totarget/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.
Run the following
mvn
command:<maven_installation_path>/bin/mvn dependency:copy-dependencies
-
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.