Setting up maven dependency for SQL Server

后端 未结 8 1828
小鲜肉
小鲜肉 2020-11-28 02:07

I am developing a portlet where I have Hibernate access to SQL Server database. I set up maven dependencies for it and try to find out SQL Server connector

8条回答
  •  半阙折子戏
    2020-11-28 02:53

    Download the driver JAR from the link provided by Olaf and add it to your local Maven repository with;

    mvn install:install-file -Dfile=sqljdbc4.jar -DgroupId=com.microsoft.sqlserver -DartifactId=sqljdbc4 -Dversion=4.0 -Dpackaging=jar

    Then add it to your project with;

    
      com.microsoft.sqlserver
      sqljdbc4
      4.0
    
    

提交回复
热议问题