1、注册ojdbc的jar包文件需要的命令行
mvn install:install-file -DgroupId=com.oracle -DartifactId=ojdbc6 -Dversion=11.2.0.1.0 -Dpackaging=jar -Dfile=C:\oracle\instantclient_12_1\ojdbc6.jar
2、需要将下载的jar 放在其他文件夹下:(原setting在apache-maven-3.2.2\conf文件夹下)
修改setting值,加下面红色的行,这样的话下载的jar将在D:\work\Maven\repository文件夹下
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ${user.home}/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
<localRepository>D:\work\Maven\repository</localRepository>
在菜单window-->>preferences中将user settings修改为下面值