1
- 的Maven 3.0.4
- 声纳Maven的插件2.2
- jacoco - Maven的插件0.6.4.201312101107
当我运行mvn sonar:sonar
,jacoco-maven-plugin的prepare-agent
目标无法运行,所以在需要时代理参数不在那里。声纳,jacoco,和Maven不予配合我
当我明确运行mvn prepare-package sonar:sonar
时,我在jacoco初始化中获得了无限递归。
显然我错过了一些东西,但什么?
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<!--
Prepares the property pointing to the JaCoCo runtime agent which
is passed as VM argument when Maven the Surefire plugin is executed.
-->
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<propertyName>jaCoCoSurefireArgLine</propertyName>
</configuration>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>