使用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
答案 0 :(得分:1)
解决方案使用新的Grounp:org.apache.jcs
<dependency>
<groupId>org.apache.jcs</groupId>
<artifactId>jcs</artifactId>
<version>1.3</version>
</dependency>