Java – how to obtain the dependency of SQL JDBC 4 using eclipse and Maven 2?

I am using eclipse and Maven 2 plug - ins

I want to add dependencies for sqljdbc 4. What should I do?

Can't seem to find it through the "add dependency" option in eclipse?

Solution

If sqljdbc 4 is a Microsoft SQL Server jdbc driver, you are likely to use not find it in any "public" repository due to licensing issues

Therefore, you must download it, extract it, and install it manually using MVN install: install file (if you have a repository manager, use MVN deploy: deploy file)

If your database engine is supported, another option is to use JTDS (which is open source and available in the Maven central repository)

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>