Solve the oracle jdbc driver problem in the official maven Database

Source: Internet
Author: User

1. Find the available oracle jdbs driver jar package and place it in the specified directory (which can be customized as needed) D: \ jdbc \ ojdbc14.jar

2. Install maven. Configure the environment variable MAVEN_HOME = 'point to the maven installation directory'

3. Open the cmd window, jump to the D: \ jdbc directory, and execute the command

Mvn install: install-file-DgroupId = com. oracle-DartifactId = ojdbc14-Dversion = 10.2.0.1.0-Dpackaging = jar-Dfile = ojdbc14.jar

Note:-Dversion can be changed based on the time.-Dfile needs to be placed into the jar file in the jdbc directory.

 

If everything works, the mvn command prompts success, you can go to the local maven library path to find: com \ oracle \ ojdbc14 \ 10.2.0.1.0 \ ojdbc14-10.2.0.1.0.jar

4. Add introduction in pom. xml of the maven project to be introduced.

<GroupId> com. oracle </groupId>
<ArtifactId> ojdbc14 </artifactId>
<Version> 10.2.0.1.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.