在maven中安装oracle7驱动

com.oracle:ojdbc7:jar:12.2.0.1 was not found in http://maven.aliyun.com/nexus/content/groups/public during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of nexus-aliyun has elapsed or updates are forced

Try to run Maven import with -U flag (force update snapshots)

免费下载 ojdbc6.jar  ojdbc7.jar   ojdbc8.jar  驱动包:ojdbc驱动包: oracle 数据库驱动 ojdbc6.jar ojdbc7.jar ojdbc8.jar

1.查看maven版本,以及是否配置环境变量:在cmd中使用mvn -v

2.将下载文件解压到maven仓库,使用命令。

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc7 -Dversion=12.1.0.2 -Dpackaging=jar -Dfile=d:/maven/com/oracle/ojdbc7.jar

在maven中安装oracle7驱动_第1张图片

参考:com.oracle:ojdbc7:jar:12.1.0.2 was not found in_ojdbc7.jar下载_我写的代码会爆炸的博客-CSDN博客

你可能感兴趣的:(java,数据库,java)