MAVEN introduces OJDBC

Source: Internet
Author: User

Because of the need for Oracle's official authorization, MAVEN cannot download ojdbc, needs to download it itself, and then loads it into the local MAVEN library by command, as detailed in the following steps


1, to the official download, address: http://www.oracle.com/technetwork/indexes/downloads/index.html, find "Drivers"-"JDBC Drivers", open, click Agree Agreement, You can select the version to download the

2, assuming that the download is 10.2.0.5.0, placed in the D-Packing directory

3. Open the Command Line window and execute the following command to load the local

MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc14-dversion=10.2.0.5.0-dpackaging=jar-dfile=d:\ Ojdbc12.jar

4. Download the pom file on maven (Maven cannot drop the jar but the Pom file) and put it into the folder in the jar in the local Lib library

5. Add in Maven file

		<dependency>
		    <groupId>com.oracle</groupId>
		    <artifactid>ojdbc14</artifactid >
		    <version>10.2.0.5.0</version>
		</dependency>


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.