Я не понимаю, я пытаюсь создать отчет о покрытии кода с помощью JaCoCo и Maven, самое простое.
У меня есть следующий плагин в моем pom.xml:
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
<executions>
<execution>
<id>prepare-agent</id>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
<execution>
<id>post-unit-test</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<!-- Sets the path to the file which contains the execution data. -->
<dataFile>target/jacoco.exec</dataFile>
<!-- Sets the output directory for the code coverage report. -->
<outputDirectory>target/my-reports</outputDirectory>
</configuration>
</execution>
</executions>
<configuration>
<systemPropertyVariables>
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
</configuration>
</plugin>
И когда я пытаюсь сделать тест mvn, он просто ничего не делает.Даже не ошибка или что-то.В моих тестах написано BUILD SUCESS, но Maven, похоже, не видит JaCoCo.Если я все равно пытаюсь выполнить mvn jacoco: report, у меня появляется сообщение: Skipping JaCoCo execution due to missing execution data file.