【发布时间】:2021-11-29 08:40:51
【问题描述】:
请提关于 Teradata 驱动程序的小问题。
Teradata 驱动程序在 Maven 中可用,链接在这里:
https://mvnrepository.com/artifact/com.teradata.jdbc.com.teradata.jdbc/terajdbc4/16.20.00.12
https://mvnrepository.com/artifact/com.teradata.jdbc/tdgssconfig/16.0.0.28
并且maven明确标明了仓库:
Note: this artifact is located at EBIPublic repository (https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/)
因此,在我的 Maven POM 中,我正在尝试这个:
<dependencies>
<dependency>
<groupId>com.teradata.jdbc</groupId>
<artifactId>tdgssconfig</artifactId>
<version>16.0.0.28</version>
</dependency>
<dependency>
<groupId>com.teradata.jdbc.com.teradata.jdbc</groupId>
<artifactId>terajdbc4</artifactId>
<version>16.20.00.12</version>
</dependency>
<repositories>
<repository>
<id>teradata</id>
<name>teradata Snapshots</name>
<url>https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>teradata</id>
<name>teradata Snapshots</name>
<url>https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
但是,在下载依赖项时:
Could not transfer artifact com.teradata.jdbc:tdgssconfig:pom:16.0.0.28 from/to teradata (https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/): Transfer failed for https://www.ebi.ac.uk/intact/maven/nexus/content/repositories/public/com/teradata/jdbc/tdgssconfig/16.0.0.28/tdgssconfig-16.0.0.28.pom 500 Internal Server Error
我很清楚这些罐子可以在这里下载,例如: https://downloads.teradata.com/download/connectivity/jdbc-driver
但我想知道问题出在哪里,请问从 Maven 获取这些 jar 的可能解决方法是什么?
谢谢
【问题讨论】:
-
与您的问题没有直接关系,但请注意,从 16.20.00.11 开始,您只需要 terajdbc4.jar - 尽管在 17.00 之前仍提供“虚拟” tdgssconfig.jar 文件。
-
学到了新东西,谢谢!