gpt4 book ai didi

java - 使用 JCS : Failed to retrieve javax. sql :jdbc-stdext-2. 0 时出错

转载 作者:行者123 更新时间:2023-11-30 10:49:15 25 4
gpt4 key购买 nike

使用Maven下载JCS时

<dependency>
<groupId>jcs</groupId>
<artifactId>jcs</artifactId>
<version>1.3</version>
</dependency>

错误:

[WARNING] An error occurred during dependency resolution.
Failed to retrieve javax.sql:jdbc-stdext-2.0
Caused by: Failure to find javax.sql:jdbc-stdext:jar:2.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the upd
ate interval of central has elapsed or updates are forced
Try downloading the file manually from:
http://java.sun.com/products/jdbc/download.html
Then, install it using the command:
mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.samsung.jcs:jcs_demo:jar:1.0-SNAPSHOT
2) jcs:jcs:jar:1.3
3) mysql:mysql-connector-java:jar:3.0.10
4) javax.sql:jdbc-stdext:jar:2.0
javax.sql:jdbc-stdext:jar:2.0
from the specified remote repositories:
central (http://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[INFO] Unable to read jar manifest from C:\Users\arun.km\.m2\repository\javax\sql\jdbc-stdext\2.0\jdbc-stdext-2.0.jar

同样无法检索 javax.transaction:jta-1.0.1B

最佳答案

解决方案使用新的 Grounp:org.apache.jcs

<dependency>
<groupId>org.apache.jcs</groupId>
<artifactId>jcs</artifactId>
<version>1.3</version>
</dependency>

关于java - 使用 JCS : Failed to retrieve javax. sql :jdbc-stdext-2. 0 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35481101/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com