Spring boot JaCoCo:由于缺少执行数据文件,正在跳过JaCoCo执行
我的pomSpring boot JaCoCo:由于缺少执行数据文件,正在跳过JaCoCo执行,spring-boot,jacoco,maven-surefire-plugin,Spring Boot,Jacoco,Maven Surefire Plugin,我的pom org.jacoco 然而,我不知道如何在我的情况下修复它 编辑:我看到一些帖子建议从我的mvn surefire插件中删除argline,但是如果我删除它,我的测试就会因mvn surefire错误和java.lang.OutOfMemoryError而挂起/崩溃 <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin
org.jacoco
然而,我不知道如何在我的情况下修复它
编辑:我看到一些帖子建议从我的mvn surefire插件中删除argline,但是如果我删除它,我的测试就会因mvn surefire错误和java.lang.OutOfMemoryError而挂起/崩溃
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.5</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.0</version>
<configuration>
<systemPropertyVariables>
<host.address>${host.address}</host.address>
</systemPropertyVariables>
<!-- Force alphabetical order to have a reproducible build -->
<runOrder>alphabetical</runOrder>
<useFile>false</useFile>
<includes>
<include>**/*Spec.*</include>
</includes>
<argLine>-Xms512m -Xmx2500m</argLine>
</configuration>
<dependencies>
<dependency>
<groupId>org.ow2.asm</groupId>
<artifactId>asm</artifactId>
<version>6.1.1</version>
</dependency>
</dependencies>
</plugin>