maven项目引入外部jar包,并实现打包
<dependency>
<groupId>xx.xx.xxx</groupId>
<artifactId>license</artifactId>
<version>4.6.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/src/lib/license-4.6.0.jar</systemPath>
</dependency>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.3.RELEASE</version>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
<encoding>UTF-8</encoding>
<compilerArguments>
<extdirs>${project.basedir}/src/lib</extdirs>
</compilerArguments>
</configuration>
</plugin>
网友评论