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>