1:pom文件增加本地jar包
<dependency>
<groupId>bim</groupId>
<artifactId>bim-codec</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${basedir}/src/main/resources/zhongqi/bim-codec-1.0.0.jar</systemPath>
</dependency>
2:pom文件plugin增加配置项,支持本地jar包打包到服务器
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
例如:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>springloaded</artifactId>
<version>1.2.3.RELEASE</version>
</dependency>
</dependencies>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>
</build>