使用eclipse和maven 2,如何获取sqljdbc4的依赖? [英] Using eclipse and maven 2, how to get dependancy for sqljdbc4?

查看:158
本文介绍了使用eclipse和maven 2,如何获取sqljdbc4的依赖?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用eclipse与maven 2插件。



我想添加sqljdbc4的依赖项,我该怎么做?



似乎没有通过eclipse中的添加依赖选项找到它?

解决方案

如果 sqljdbc4 是Microsoft SQL Server JDBC驱动程序,那么很可能 没有找到它 在任何公共存储库由于许可问题。



所以你必须下载它,解压缩并安装它手动使用 mvn install:如果您有存储库管理器,则安装文件 (或 mvn deploy:deploy-file )。



另一个选择是使用 jTDS (其中如果您的数据库引擎得到支持,则是maven中央存储库中的开放源代码。)


I am using eclipse with the maven 2 plugin.

I want to add the dependency for sqljdbc4, how can I do that?

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

解决方案

If sqljdbc4 is the Microsoft SQL Server JDBC Driver, then you will very likely not find it in any "public" repository because of licensing issues.

So you'll have to download it, unpack it and install it manually with either mvn install:install-file (or mvn deploy:deploy-file if you have a repository manager).

Another option would be to use jTDS (which is open source and available in maven central repository) if your database engine is supported.

这篇关于使用eclipse和maven 2,如何获取sqljdbc4的依赖?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆