If maven is not installed locally, first download and decompress it from the apache mavne official website, and configure environment variables.
Start cmd input: mvn -v
After the installation is successful, install the oracle6 driver package to the local warehouse through cmd
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=12.1.0.1 -Dpackaging=jar -Dfile=F:/oracle/ojdbc6.jar
<dependency> <groupId>com.oracle</groupId> <artifactId>ojdbc6</artifactId> <version>12.1.0.1</version> </dependency>