第一步:确认工程使用的本地maven仓库地址
第二步:找到环境变量中配置的maven
第三步:找到本地maven中的settings.xml
第四步:安装oracle的jar到本地仓库
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.4.0 -Dpackaging=jar -Dfile=D:\autobackup\APIandJAR\jar\ojdbc6.jar
-Dfile的值应该是你的jar所在的路径
第五步:确认配置是否成功
第六步:在工程中引入jar
<dependency>
<groupId>com.oracle</groupId>
<artifactId>ojdbc6</artifactId>
<version>11.2.0.4.0</version>
</dependency>
这里的groupId、artifactId、version
和上面mvn install
命令中的要一样