I'm trying to get my team to switch to IntelliJ from STS but I'm getting this error in the POM file that we don't see in STS.
The line below is throwing an error : "Element destFile is not allowed here" This doesn't break anything but I just want to make sure there's no errors.
<destFile>${jacoco.exec.path}</destFile>
How can I resolve this error?
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.maven.plugin.version}</version>
<configuration>
<excludes>
<exclude>**/*DTO.*</exclude>
<exclude>**/*Example.*</exclude>
<exclude>**/generated/**/*.*</exclude>
<exclude>**/constants/**/*.*</exclude>
<exclude>**/dto/**/*.*</exclude>
<exclude>**/mapper/**/*.*</exclude>
<exclude>**/model/**/*.*</exclude>
<exclude>**/domain/**/*.*</exclude>
<exclude>**/*.set*</exclude>
<exclude>**/*.get*</exclude>
<exclude>**/*.toString*</exclude>
</excludes>
<destFile>${jacoco.exec.path}</destFile>
<dataFile>${jacoco.exec.path}</dataFile>
</configuration>
<executions>
<execution>
<id>jacoco-initialize</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<destFile>target/coverage-reports/jacoco.exec</destFile>
</configuration>
</execution>
<execution>
<id>jacoco-site</id>
<phase>package</phase>
<goals>
<goal>report</goal>
</goals>
<configuration>
<destFile>target/coverage-reports/jacoco.exec</destFile>
</configuration>
</execution>
</executions>
</plugin>