Problem Status:
Several OJDBC package dependencies found on Maven Repository are not automatically downloaded to the. M2 directory through Maven, resulting in a OJDBC prompt error in the project.
Workaround:
1. Open the JDBC Jar file directory under the locally installed Oracle installation directory, my computer is D:\app\Lenovo\product\11.2.0\dbhome_1\jdbc\lib, open
2, enter CMD in the path bar, and then enter to open the CMD window
Open the directory path after CMD automatically in the current path:
3. Enter the MAVEN command in the cmd window to install
Install:install-file -dgroupid=ojdbc-dartifactid=ojdbc6-dversion=11.2. 0.4 -dpackaging=jar-dfile=ojdbc6.jar
The effect of successful execution:
4. After execution, the jar directory can be found in the. M2 directory under the System folder.
5. Ojdbc can then be imported into the project via the following MAVEN dependency configuration
<dependency> <groupId>ojdbc</groupId> <artifactId>ojdbc6</artifactId> <version>11.2. 0.4</version></dependency>
After import
--------------------Additional content--------------------
For a different reference link to several JDBC support packages in the Oracle installation directory (below is 11g, this version of My Computer):
Http://www.oracle.com/technetwork/apps-tech/jdbc-112010-090769.html
Maven cannot download the solution for Oracle driver OJDBC