0
단위 테스트를 성공적으로 실행하려면 JVM에 대체 된 표준 클래스를 제공해야합니다. 따라서, 나는 maven-surefire-plugin
에 대한 구성을 다음 사용 `-Xbootclasspath/p : my.jar` 옵션으로`jacoco-maven-plugin`을 실행하는 방법은 무엇입니까?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<skipTests>${skipUTs}</skipTests>
<argLine>-Xbootclasspath/p:my.jar</argLine>
</configuration>
</plugin>
plugin/configuration/argLine
configuration/argLine
:(이없는
내 pom.xml 파일에 다음과 같이 내가 메이븐 JaCoCo 플러그인을 구성한 :.
documentation ofprepare-agent
에 명시된 바와 같이
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.7.5.201505241946</version>
<configuration>
<skip>${skipUTs}</skip>
<!-- NO ONE (((((
<argLine>-Xbootclasspath/p:my.jar</argLine>
-->
</configuration>
<executions>
<execution>
<id>default-prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>default-report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>default-check</id>
<goals>
<goal>check</goal>
</goals>
<configuration>
<rules>
<rule implementation="org.jacoco.maven.RuleConfiguration">
<element>BUNDLE</element>
<limits>
<limit implementation="org.jacoco.report.check.Limit">
<counter>COMPLEXITY</counter>
<value>COVEREDRATIO</value>
<minimum>1.0</minimum>
</limit>
</limits>
</rule>
</rules>
</configuration>
</execution>
</executions>
</plugin>
[jacoco JVM args를 사용할 수없고 Maven에서 JVM args를 함께 사용할 수 없음] (http://stackoverflow.com/questions/23190107/cannot-use-jacoco-jvm-args-and-surefire-jvm-args) - 예를 들어 - 메이븐) – Godin