
On original page there's an instruction for setup with ant, but Maven users can find this article very useful
mvn install:install-file -Dfile=sqljdbc4.jar -Dpackaging=jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0Then you'll get this result :
[INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Stub Project (No POM) 1 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom --- [INFO] Installing C:\sqljdbc4.jar to C:\IDEConfigs\.m2\repository\com\microsoft\ sqlserver\sqljdbc4\4.0\sqljdbc4-4.0.jar [INFO] Installing C:\Users\AF4C0~1.ZAK\AppData\Local\Temp\mvninstall797028335566 232276.pom to C:\IDEConfigs\.m2\repository\com\microsoft\sqlserver\sqljdbc4\4.0\ sqljdbc4-4.0.pom [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 0.925s [INFO] Finished at: Fri Dec 06 15:59:40 CET 2013 [INFO] Final Memory: 5M/121M [INFO] ------------------------------------------------------------------------Now you have this library in your local repository. If you want to use it in your project, then just add dependancy to your pom.xml file.
That's it. Now you can create connection to SQL Server in your testscom.microsoft.sqlserver sqljdbc4 4.0