The IDEA project using maven import ojdbc14 jar package fails

The reason: ojdbc should be charged so maven can not be downloaded through a central warehouse.

I thought it was a bad network, leading to the download has failed, but how I think are wrong, because I used the image of Ali cloud, the network can be no question of it, so they use outside the network, re-import, or failure.

I went to the central warehouse to find maven nor, later found on the Internet turned out to be ojdbc for a fee

So the solution is as follows:

1. Download the men ojdbc14.jar, the same as the following

image

Here you have to Tucao CSDN, and also money to download, I like this white whore party how could a penny

image

2. After downloading ojdbc14, renamed ojdbc14-10.2.0.4.0.jar, as follows

image

3. Open and then enter cmd

mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc14 -Dversion=10.2.0.4.0 -Dpackaging=jar -Dfile=E:\oracle\ojdbc14-10.2.0.4.0.jar

image

After the Enter key, if there is no problem, it should appear as shown in Figure

image

And then to your local Maven repository is to see if there is a successful install.

image

Guess you like

Origin www.cnblogs.com/train99999/p/11317472.html