问题描述
我的pom
<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>
大家好,我感谢您的帮助。我正在Spring Boot 2.3.1测试中使用它。
我的问题似乎可能与此Cannot use jacoco JVM args and surefire JVM args together in maven
有关但是我不确定该如何解决
edit:我看到一些帖子建议从我的mvn surefire插件中删除argline,但是如果我删除它,我的测试会因mvn surefire错误和java.lang.OutOfMemoryError挂起/崩溃而出现问题
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)