[英]Failure to find javax.sql:jdbc-stdext:jar:2.0 in https://repo.maven.apache.org/maven2 was cached in the local repository,
I am using Windows 10 pro x64, Apache Maven 3.6.3 .我使用的是 Windows 10 pro x64, Apache Maven 3.6.3 。 My pom.xml
我的pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>vn.com.foobar</groupId>
<artifactId>yyyy-xxxxxx</artifactId>
<packaging>war</packaging>
<version>2.4.0-SNAPSHOT</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<springframework.version>5.1.3.RELEASE</springframework.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<start-class>com.mp.server.Start</start-class>
</properties>
<dependencies>
<dependency>
<groupId>com.rabbitmq</groupId>
<artifactId>amqp-client</artifactId>
<version>5.7.3</version>
</dependency>
<dependency>
<groupId>antlr</groupId>
<artifactId>antlr</artifactId>
<version>2.7.7</version>
</dependency>
<dependency>
<groupId>org.xxxxxxjava</groupId>
<artifactId>xxxxxx-java</artifactId>
<version>1.0.0-final</version>
</dependency>
<dependency>
<groupId>net.bytebuddy</groupId>
<artifactId>byte-buddy</artifactId>
<version>1.6.14</version>
</dependency>
<dependency>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.2</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.0</version>
</dependency>
<dependency>
<groupId>commons-digester</groupId>
<artifactId>commons-digester</artifactId>
<version>1.8.1</version>
</dependency>
<dependency>
<groupId>org.springframework.data</groupId>
<artifactId>spring-data-redis</artifactId>
<version>2.1.5.RELEASE</version>
</dependency>
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>2.9.0</version>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.17</version>
</dependency>
<dependency>
<groupId>commons-dbcp</groupId>
<artifactId>commons-dbcp</artifactId>
<version>1.1</version>
</dependency>
<dependency>
<groupId>org.quartz-scheduler</groupId>
<artifactId>quartz</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
<version>1.3.2</version>
</dependency>
<dependency>
<groupId>javax.transaction</groupId>
<artifactId>javax.transaction-api</artifactId>
<version>1.2</version>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.2.4</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-all</artifactId>
<version>4.1.0.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.6.Final</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>6.0.6</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.9.9</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
<version>1.6</version>
<type>jar</type>
</dependency>
</dependencies>
</project>
I already我已经
MAVEN_HOME
,设置MAVEN_HOME
,.m2
folder;删除.m2
文件夹中的所有旧东西;javax.sql:jdbc-stdext:jar:2.0
特别是,我删除了依赖javax.sql:jdbc-stdext:jar:2.0
then I run然后我跑
mvn package -X
So strange, I still catch error太奇怪了,我还是发现了错误
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project vn.com.foobar:xxx-xxxxxx:war:2.4.0-SNAPSHOT: Failure to find javax.sql:jdbc-stdext:jar:2.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced引起:org.apache.maven.project.DependencyResolutionException: 无法解析项目 vn.com.foobar:xxx-xxxxxx:war:2.4.0-SNAPSHOT: 找不到 javax.sql:jdbc-stdext:jar 的依赖项: https://repo.maven.apache.org/maven2中的 2.0 缓存在本地存储库中,直到 Central 的更新间隔已过或强制更新时才会重新尝试解析
Full log at https://pastebin.com/arwRbzTp . https://pastebin.com/arwRbzTp 上的完整日志。 How to fix it?如何解决?
Temporary solution临时解决方案
download from https://raw.githubusercontent.com/wbw20/maven-repository/master/releases/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar从https://raw.githubusercontent.com/wbw20/maven-repository/master/releases/javax/sql/jdbc-stdext/2.0/jdbc-stdext-2.0.jar下载
run跑
mvn install:install-file -DgroupId=javax.sql -DartifactId=jdbc-stdext -Dversion=2.0 -Dpackaging=jar -Dfile=jdbc-stdext-2.0.jar
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.