[Solved] Error reported when adding ojdbc6 to springboot

Generally, adding ojdbc6 database driver to springboot will report an error, and the dependency cannot be added. The reason is that the ojdbc6 database driver is charged and cannot be downloaded directly through Maven. You need to download ojdbc6.jar manually and add it to your own warehouse manually

The first step is to download the jar package of ojdbc6


Select jar to download it

Step 2 rename ojdbc6 the downloaded jar and put it in the directory of the C disk user

Step 3 open the CMD window from this directory

Execute command

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

Add it to your Maven

This indicates that the addition was successful

Step 4 go to your own warehouse to check


The jar package has been added

If you just add a dependency, you won’t report an error


Similar Posts: