首先下载:
https://www.oracle.com/technetwork/cn/database/enterprise-edition/jdbc-112010-094555-zhs.html
11.2.0.4
执行maven命令
mvn install:install-file -Dfile=/C/Users/zilong/Downloads/ojdbc6-11.2.0.4.jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4 -Dpackaging=jar
这里有个版本
https://mvnrepository.com/artifact/oracle/ojdbc6/11.2.0.3
你需要再POM里面加上这段才能用
<repositories>
<!--<repository>-->
<!--<id>spring-snapshots</id>-->
<!--<name>Spring Snapshots</name>-->
<!--<snapshots>-->
<!--<enabled>true</enabled>-->
<!--</snapshots>-->
<!--<url>https://repo.spring.io/snapshot</url>-->
<!--</repository>-->
<!--<repository>-->
<!--<id>Central Repository</id>-->
<!--<name>Central Repository</name>-->
<!--<snapshots>-->
<!--<enabled>true</enabled>-->
<!--</snapshots>-->
<!--<url>http://central.maven.org/maven2/</url>-->
<!--</repository>-->
<!--<repository>-->
<!--<id>Sonatype Repository</id>-->
<!--<name>-->
<!--Sonatype Repository-->
<!--</name>-->
<!--<snapshots>-->
<!--<enabled>true</enabled>-->
<!--</snapshots>-->
<!--<url>https://oss.sonatype.org/content/repositories/releases/</url>-->
<!--</repository>-->
<!--<repository>-->
<!--<id>spring-milestones</id>-->
<!--<name>Spring Milestones</name>-->
<!--<snapshots>-->
<!--<enabled>false</enabled>-->
<!--</snapshots>-->
<!--<url>https://repo.spring.io/milestone</url>-->
<!--</repository>-->
<repository>
<id>Datanucleus</id>
<name>Datanucleus</name>
<url>http://www.datanucleus.org/downloads/maven2/</url>
</repository>
<repository>
<id>jcenter-snapshots</id>
<name>jcenter</name>
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
</repository>
</repositories>
当然如果你把注解打开,原来找不到的包基本上都能找到了
网友评论