Problem: An error occurs when a dependency is introduced.
1. First we are going to download an Oracle driver jar package, Ojdbc6.jar (I have Oracle installed here, so in the Oracle installation directory F:\app\zyh\product\11.1.0\db_1\jdbc\lib The directory will have a drive jar package, if you do not have Oracle installed, then you can download the jar from the official website, anyway, you have to have a ojdbc6.jar, as long as you get it on the line.
2. Take my machine as an example, open a command prompt (cmd), enter the directory where the Ojdbc6.jar is located, and I will enter F:\app\zyh\product\11.1.0\db_1\jdbc\lib, enter
MVN install:install-file-dgroupid=com.oracle-dartifactid=ojdbc14-dversion=10.2. 0.4. 0 -dpackaging=jar-dfile=ojdbc6.jar
The jar is then automatically installed to the local repository. My local warehouse is in E:\yycgrepository\repository.
3. We are looking for the local warehouse to find that the installation is successful
4. Adding our dependencies to the project will not be an error.
Introduction of Oracle Driver error missing artifact com.oracle:ojdbc14:jar:10.2.0.4.0 in maven