问题:
Failed to execute goal on project demo: Could not resolve dependencies for project com.example:demo:jar:0.0.1-SNAPSHOT: Failure to find oracle.jdbc.driver:ojdbc14:jar:10.2.0.2.0 in http://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
笔者使用idea工具利用springboot搭建环境时遇到一个ojdbc依赖不了的问题,
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc14</artifactId>
<version>10.2.0.2.0</version>
</dependency>
笔者试了reimport, 删除本地仓库相应文件,让idea从新进行下载等方法,依旧不好使, 但是在重新下载的时候,他自动创建了相应的文件夹,但是仔细看一下发现里面没有jar文件,对比了一下远程仓库与本地仓库,发现远程仓库内容如下:
本地仓库内容如下: