我在这里感到困惑,我正在运行maven 3,java 1.6并且配置了maven项目,一切正常,包括所有单元测试。现在我来添加Jacoco插件,这样配置
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.5.5.201112152213</version>
<configuration>
<destfile>${basedir}/target/coverage-reports/jacoco-unit.exec</destfile>
<datafile>${basedir}/target/coverage-reports/jacoco-unit.exec</datafile>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
现在当我尝试运行mvn clean包时,没有单元测试通过,根本没有覆盖报告。
有人能指出我哪里出错了吗?
提前致谢