如何在 pom.xml 中添加 ucanaccess maven 依赖项
Posted
技术标签:
【中文标题】如何在 pom.xml 中添加 ucanaccess maven 依赖项【英文标题】:How do add ucanaccess maven dependency in pom.xml 【发布时间】:2015-05-17 18:54:12 【问题描述】:我无法让 ucanaccess 工作的 maven 依赖项: 网络访问 ucanaccess 2.XX
好像没有?
【问题讨论】:
【参考方案1】:maven Central 目前似乎无法使用 ucanaccess(基于谷歌搜索并找到 this thread)。
我建议从 sourceforge 下载它,解压缩 jar,然后按照 maven documentation 中的说明将 jar 安装到本地存储库中:
mvn install:install-file
-Dfile=<path-to-file>
-DgroupId=<group-id>
-DartifactId=<artifact-id>
-Dversion=<version>
-Dpackaging=<packaging>
-DgeneratePom=true
Where: <path-to-file> the path to the file to load
<group-id> the group that the file should be registered under
<artifact-id> the artifact name for the file
<version> the version of the file
<packaging> the packaging of the file e.g. jar
【讨论】:
【参考方案2】:您是否查看http://mvnrepository.com/ 以检查您的依赖项是否存在?
如果不是,您应该自己将 jar 放到类路径中,或者在本地 maven 存储库的 %HOME%.m2\repository 中创建适当的目录。
【讨论】:
以上是关于如何在 pom.xml 中添加 ucanaccess maven 依赖项的主要内容,如果未能解决你的问题,请参考以下文章