1.切换到odjbc14.jar的所在目录
2.运行一下命令
mvn install:install-file -DgroupId=oracle -DartifactId=oracle-jdbc -Dpackaging=jar -Dversion=10.1.0.2.0 -DgeneratePon=true -Dfile=ojdbc14.jar
3.在你的项目添加依赖
<dependency>
<groupId>oracle</groupId>
<artifactId>oracle-jdbc</artifactId>
<version>10.1.0.2.0</version>
<scope>runtime</scope>
</dependency>