reference
https://blog.csdn.net/qq_38416576/article/details/79985803
https://www.cnblogs.com/anenyang/p/10057279.html
1. ojdbc import a local warehouse
Under the new project folder lib, will ojdbc6.jar into.
The following command line to the third party package to the local repository ( note, where the groupId , the artifactId consistent and to rely on the above written in addition, -D no space between the option and the following parameters ) :
mvn install:install-file -Dfile=lib/ojdbc6.jar -DgroupId=tw.edu.ntu.csie -DartifactId=liblinear -Dversion=1.95 -Dpackaging=jar
2. Configure pom.xml introduced ojdbc, export to jar the system will ojdbc is exported. version configured according to the version.
<dependency> <groupId>com.oracle</groupId> <artifactId>oracle6</artifactId> <version>11.2.0.4.0</version> <scope>system</scope> <systemPath>${project.basedir}/lib/ojdbc6.jar</systemPath> </dependency>
<plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin> </plugins>