引入外部JAR
<dependency>
<groupId>com.jacoco</groupId>
<artifactId>jacococli</artifactId>
<version>1.0.0</version>
<scope>system</scope>
<systemPath>${pom.basedir}/src/main/resources/lib/jacococli.jar</systemPath>
</dependency>
这里推荐使用"${pom.basedir}",而不是"${project.basedir}"
打包时包含外部JAR
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<includeSystemScope>true</includeSystemScope>
</configuration>
</plugin>
</plugins>