在开发的过程当中,经常遇到Spring boot项目须要依赖jar文件依赖,但又不想安装到本地maven依赖中。spring
src/resources/lib
<dependency> <groupId>com.oracle.local</groupId> <artifactId>ojdbc</artifactId> <version>1.0.0</version> <scope>system</scope> <systemPath>${pom.basedir}/src/main/resources/lib/ojdbc-1.0.0.jar</systemPath> </dependency>
<plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <includeSystemScope>true</includeSystemScope> </configuration> </plugin>
是编译本身的jar文件的时候,把依赖的jar文件包括进去。oracle