mssql-jdbc
Used in
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>12.9.0.jre11-preview</version> </dependency>
<?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.microsoft.sqlserver</groupId> <artifactId>mssql-jdbc</artifactId> <version>12.9.0.jre11-preview</version> <packaging>jar</packaging> <name>Microsoft JDBC Driver for SQL Server</name> <description> Microsoft JDBC Driver for SQL Server. </description> <url>https://github.com/Microsoft/mssql-jdbc</url> <licenses> <license> <name>MIT License</name> <url>http://www.opensource.org/licenses/mit-license.php</url> </license> </licenses> <organization> <name>Microsoft Corporation</name> </organization> <developers> <developer> <organization>Microsoft</organization> <organizationUrl>http://www.microsoft.com</organizationUrl> </developer> </developers> <scm> <url>https://github.com/Microsoft/mssql-jdbc</url> </scm> <properties> <!-- Allowed values for excluded Groups here - - - - - - - - - - - - - xJDBC42 - - - - - - For tests not compatible with JDBC 42 Specifications xGradle - - - - - - For tests not compatible with Gradle Script - - - - - xSQLv11 - - - - - - For tests not compatible with SQL Server 2012 - - - - xSQLv12 - - - - - - For tests not compatible with SQL Server 2008 R2 - 2014 xSQLv14 - - - - - - For tests not compatible with SQL Server 2016 - 2017 xSQLv15 - - - - - - For tests not compatible with SQL Server 2019 - - - - xSQLv16 - - - - - - For tests not compatible with SQL Server 2022 - - - - xAzureSQLDB - - - - For tests not compatible with Azure SQL Database - - xAzureSQLDW - - - - For tests not compatible with Azure Data Warehouse - xAzureSQLMI - - - - For tests not compatible with Azure SQL Managed Instance NTLM - - - - - - - For tests using NTLM Authentication mode (excluded by default) kerberos - - - - - For tests using Kerberos authentication (excluded by default) reqExternalSetup - For tests requiring external setup (excluded by default) clientCertAuth - - For tests requiring client certificate authentication setup (excluded by default) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default testing enabled with SQL Server 2019 (SQLv15) --> <excludedGroups>xSQLv12,xSQLv15,NTLM,MSI,reqExternalSetup,clientCertAuth,fedAuth,kerberos</excludedGroups> <!-- Use -preview for preview release, leave empty for official release. --> <releaseExt>-preview</releaseExt> <!-- Driver Dependencies --> <org.osgi.core.version>6.0.0</org.osgi.core.version> <azure-security-keyvault-keys.version>4.7.3</azure-security-keyvault-keys.version> <azure-identity.version>1.12.2</azure-identity.version> <msal.version>1.15.1</msal.version> <osgi.jdbc.version>1.1.0</osgi.jdbc.version> <antlr-runtime.version>4.9.3</antlr-runtime.version> <com.google.code.gson.version>2.10.1</com.google.code.gson.version> <bcprov-jdk18on.version>1.78</bcprov-jdk18on.version> <bcpkix-jdk18on.version>1.78</bcpkix-jdk18on.version> <!-- JUnit Test Dependencies --> <junit.platform.version>[1.3.2, 1.9.0]</junit.platform.version> <junit.jupiter.version>5.8.2</junit.jupiter.version> <hikaricp.version>3.4.2</hikaricp.version> <dbcp2.version>2.7.0</dbcp2.version> <slf4j.nop.version>1.7.30</slf4j.nop.version> <gemini.mock.version>2.1.0.RELEASE</gemini.mock.version> <h2.version>2.2.220</h2.version> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.reporting.outputEncoding>${project.build.sourceEncoding}</project.reporting.outputEncoding> <enforcer.skip>false</enforcer.skip> </properties> <dependencies> <dependency> <groupId>com.azure</groupId> <artifactId>azure-security-keyvault-keys</artifactId> <version>${azure-security-keyvault-keys.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>com.azure</groupId> <artifactId>azure-identity</artifactId> <version>${azure-identity.version}</version> <optional>true</optional> <exclusions> <exclusion> <groupId>stax</groupId> <artifactId>stax-api</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.microsoft.azure</groupId> <artifactId>msal4j</artifactId> <version>${msal.version}</version> <optional>true</optional> </dependency> <!-- dependencies for ANTLR --> <dependency> <groupId>org.antlr</groupId> <artifactId>antlr4-runtime</artifactId> <version>${antlr-runtime.version}</version> <optional>true</optional> </dependency> <!-- dependencies for AAS Enclave Provider --> <dependency> <groupId>com.google.code.gson</groupId> <artifactId>gson</artifactId> <version>${com.google.code.gson.version}</version> <optional>true</optional> </dependency> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcprov-jdk18on</artifactId> <version>${bcprov-jdk18on.version}</version> <optional>true</optional> </dependency> <!-- dependencies for Client Certificate Authentication --> <dependency> <groupId>org.bouncycastle</groupId> <artifactId>bcpkix-jdk18on</artifactId> <version>${bcpkix-jdk18on.version}</version> <optional>true</optional> </dependency> <!-- dependencies provided by an OSGi-Framework --> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.core</artifactId> <version>${org.osgi.core.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.osgi</groupId> <artifactId>org.osgi.service.jdbc</artifactId> <version>${osgi.jdbc.version}</version> <scope>provided</scope> </dependency> <!-- dependencies for running tests --> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-console</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-commons</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-engine</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-launcher</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-runner</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.platform</groupId> <artifactId>junit-platform-surefire-provider</artifactId> <version>${junit.platform.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>${junit.jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-engine</artifactId> <version>${junit.jupiter.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.zaxxer</groupId> <artifactId>HikariCP</artifactId> <version>${hikaricp.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-dbcp2 </artifactId> <version>${dbcp2.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-nop</artifactId> <version>${slf4j.nop.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.eclipse.gemini.blueprint</groupId> <artifactId>gemini-blueprint-mock</artifactId> <version>${gemini.mock.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>com.h2database</groupId> <artifactId>h2</artifactId> <version>${h2.version}</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>${junit.jupiter.version}</version> <scope>test</scope> </dependency> </dependencies> <repositories> <repository> <id>central</id> <url>https://sqlclientdrivers.pkgs.visualstudio.com/public/_packaging/mssql-jdbc/maven/v1</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>central</id> <url>https://sqlclientdrivers.pkgs.visualstudio.com/public/_packaging/mssql-jdbc/maven/v1</url> <releases> <enabled>true</enabled> </releases> <snapshots> <enabled>true</enabled> </snapshots> </pluginRepository> </pluginRepositories> <profiles> <profile> <id>jre8</id> <build> <finalName>${project.artifactId}-${project.version}.jre8${releaseExt}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <excludes> <exclude>**/com/microsoft/sqlserver/jdbc/ISQLServerConnection43.java</exclude> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerConnection43.java</exclude> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc43.java</exclude> </excludes> <testExcludes> <exclude>**/com/microsoft/sqlserver/jdbc/connection/ConnectionWrapper43Test.java</exclude> <exclude>**/com/microsoft/sqlserver/jdbc/connection/RequestBoundaryMethodsTest.java</exclude> <exclude>**/com/microsoft/sqlserver/jdbc/JDBC43Test.java</exclude> </testExcludes> <source>1.8</source> <target>1.8</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <source>8</source> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.1</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> </archive> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M1</version> <configuration> <!-- Exclude [xJDBC42] For tests not compatible with JDBC 4.2 Specifications --> <excludedGroups>${excludedGroups}, xJDBC42</excludedGroups> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>jre11</id> <build> <finalName>${project.artifactId}-${project.version}.jre11${releaseExt}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <excludes> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude> </excludes> <source>11</source> <target>11</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.1</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <Automatic-Module-Name>com.microsoft.sqlserver.jdbc</Automatic-Module-Name> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>jre17</id> <build> <finalName>${project.artifactId}-${project.version}.jre17${releaseExt}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <excludes> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude> </excludes> <source>17</source> <target>17</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.1</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <Automatic-Module-Name>com.microsoft.sqlserver.jdbc</Automatic-Module-Name> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>jre21</id> <build> <finalName>${project.artifactId}-${project.version}.jre21${releaseExt}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <excludes> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude> </excludes> <source>21</source> <target>21</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.1</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <Automatic-Module-Name>com.microsoft.sqlserver.jdbc</Automatic-Module-Name> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </profile> <profile> <id>jre23</id> <activation> <activeByDefault>true</activeByDefault> </activation> <build> <finalName>${project.artifactId}-${project.version}.jre23${releaseExt}</finalName> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.8.0</version> <configuration> <excludes> <exclude>**/com/microsoft/sqlserver/jdbc/SQLServerJdbc42.java</exclude> </excludes> <source>23</source> <target>23</target> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.1.1</version> <configuration> <archive> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <manifestEntries> <Automatic-Module-Name>com.microsoft.sqlserver.jdbc</Automatic-Module-Name> </manifestEntries> </archive> </configuration> </plugin> </plugins> </build> </profile> </profiles> <build> <resources> <resource> <directory>${basedir}</directory> <includes> <include>META-INF/services/java.sql.Driver</include> </includes> </resource> </resources> <testResources> <testResource> <directory>src/test/resources</directory> <includes> <include>**/*.csv</include> </includes> </testResource> <testResource> <directory>AE_Certificates</directory> <includes> <include>**/*.txt</include> <include>**/*.jks</include> </includes> </testResource> </testResources> <plugins> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> <version>3.0.0-M2</version> <executions> <execution> <id>enforce-versions</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <bannedPlugins> <!-- will only display a warning but does not fail the build. --> <level>WARN</level> <excludes> <exclude>org.apache.maven.plugins:maven-verifier-plugin</exclude> </excludes> <message>Please consider using the maven-invoker-plugin (http://maven.apache.org/plugins/maven-invoker-plugin/)!</message> </bannedPlugins> <requireMavenVersion> <version>3.5.0</version> </requireMavenVersion> <requireJavaVersion> <version>11</version> </requireJavaVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.0.0-M1</version> <configuration> <forkCount>3</forkCount> <reuseForks>true</reuseForks> <argLine>${argLine} -Xmx1024m -Djava.library.path=${dllPath} </argLine> <excludedGroups>${excludedGroups}</excludedGroups> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.0.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <!-- Create OSGI Headers --> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.1</version> <extensions>true</extensions> <configuration> <instructions> <_exportcontents> com.microsoft.sqlserver.jdbc, com.microsoft.sqlserver.jdbc.osgi, com.microsoft.sqlserver.jdbc.dataclassification, microsoft.sql </_exportcontents> <Import-Package>!microsoft.sql,jdk.net;resolution:=optional,*</Import-Package> <Bundle-Activator>com.microsoft.sqlserver.jdbc.osgi.Activator</Bundle-Activator> </instructions> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.2.0</version> <configuration> <failOnError>true</failOnError> <excludePackageNames>mssql.*</excludePackageNames> </configuration> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>2.5</version> <inherited>true</inherited> <configuration> <outputFile>outdated-dependencies.txt</outputFile> <rulesUri>file:///${session.executionRootDirectory}/maven-version-rules.xml</rulesUri> </configuration> </plugin> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.12</version> <executions> <execution> <id>pre-test</id> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>default-report</id> <phase>prepare-package</phase> <goals> <goal>report</goal> </goals> </execution> </executions> <configuration> <excludes> <exclude>**/mssql/googlecode/**/*</exclude> <exclude>**/mssql/security/**/*</exclude> </excludes> <fileSets> <fileSet> <directory>jacoco-execs/</directory> <includes> <include>**/*.exec</include> </includes> </fileSet> </fileSets> <!-- File containing the merged coverage data --> <destFile>${project.build.directory}/jacoco.exec</destFile> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-clean-plugin</artifactId> <version>3.1.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-deploy-plugin</artifactId> <version>2.8.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-install-plugin</artifactId> <version>2.5.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-resources-plugin</artifactId> <version>3.1.0</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-site-plugin</artifactId> <version>3.7.1</version> </plugin> <plugin> <groupId>org.apache.maven</groupId> <artifactId>maven-archiver</artifactId> <version>3.4.0</version> </plugin> </plugins> </build> </project>