我使用的是jdk1.8、maven 3.3、jacoco 0.8.7 sonarqube插件6.7.6
pom.xml
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.7</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<!-- attached to Maven test phase -->
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
jenkins命令-dmaven.test.failure.ignore=true-u clean org.jacoco:jacocomaven插件:0.8.7:prepare agent org.jacoco:jacocomaven插件:0.8.7:report test
暂无答案!
目前还没有任何答案,快来回答吧!