Add Oracle Database driver package in Pom.xml error: Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0

Source: Internet
Author: User

Pom.xml loading jar pack times wrong: Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0.

Because of Oracle's OJDBC charges, there is no Ojdbc14-10.2.0.4.0.jar package when the MAVEN project is imported.

Workaround:

Configure the local library. Download the jar package, place the jar package in the repository's corresponding folder Ojdbc14\10.2.0.4.0\, install to the local warehouse (need to match MAVEN environment variables beforehand), write the following command in the command line tool, note that the local warehouse location must write to:

MVN install:install-file-dgroupid=com. oracle-dartifactid=ojdbc14-dversion=10.2.0.4.0-dpackaging=jar-d file=C:\maven\.m2\ Repository\com\oracle\ojdbc14\10.2.0.4.0\ojdbc14-10.2.0.4.0.jar

The red part needs to be changed to its own local warehouse location.

(Reprinted from: http://www.cnblogs.com/bella-young/p/6518708.html)

--------------------------------------------------------------above is a workaround from the network----------------------------------

I just put the downloaded jar package in the warehouse corresponding folder Ojdbc14\10.2.0.4.0\, OK.

Add Oracle Database driver package in Pom.xml error: Missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0

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.