Maven cannot download the solution for Oracle driver OJDBC

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.