Daily search: maven cannot download oracle11g database driver, ojdbc6.jar resource package has no routine download

insert image description here
1. First, click this link to download the resource pack directly: click me to download , if the link fails, please move to: click here to go directly to a website provided by a jar to download! Just click to download...
insert image description here
2. After downloading, put it directly in the root directory of disk d, then find your maven source program, and execute:

mvn install:install-file -Dfile=d:/ojdbc6.jar -Dpackaging=jar -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0

3. Import maven directly

 <dependency>
      <groupId>com.oracle</groupId>
      <artifactId>ojdbc6</artifactId>
      <version>11.2.0.1.0</version>
    </dependency>

4. If none of the above methods work, and you are pulling the latest oracle11g, then directly rely on maven:

In principle only need to download this:

<dependency>
    <groupId>com.oracle.database.jdbc</groupId>
    <artifactId>ojdbc8</artifactId>
    <version>21.5.0.0</version>
</dependency>

If you have problems with charset errors add this dependency:

<dependency>
    <groupId>com.oracle.database.nls</groupId>
    <artifactId>orai18n</artifactId>
    <version>21.5.0.0</version>
</dependency>

No thanks, please pay attention

Guess you like

Origin blog.csdn.net/qq_44918802/article/details/126745098