Updated Jacoco POM section

This commit is contained in:
tastybento 2023-02-10 10:50:41 -08:00
parent 1b585a22c8
commit 84a38f4d8c

44
pom.xml
View File

@ -356,35 +356,35 @@
</executions> </executions>
</plugin> </plugin>
<plugin> <plugin>
<groupId>org.apache.maven.plugins</groupId> <groupId>org.jacoco</groupId>
<artifactId>maven-shade-plugin</artifactId> <artifactId>jacoco-maven-plugin</artifactId>
<version>3.3.1-SNAPSHOT</version> <version>0.8.7</version>
<configuration> <configuration>
<minimizeJar>true</minimizeJar> <append>true</append>
<artifactSet> <excludes>
<includes> <!-- This is required to prevent Jacoco from adding
<include>lv.id.bonne:panelutils:*</include> synthetic fields to a JavaBean class (causes errors in testing) -->
</includes> <exclude>**/*Names*</exclude>
</artifactSet> </excludes>
<transformers>
<!-- Add a transformer to exclude any other manifest files (possibly from dependencies). -->
<transformer implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resource>MANIFEST.MF</resource>
</transformer>
<!-- Add a transformer to include your custom manifest file. -->
<transformer implementation="org.apache.maven.plugins.shade.resource.IncludeResourceTransformer">
<resource>META-INF/MANIFEST.MF</resource>
<file>src/main/resources/META-INF/MANIFEST.MF</file>
</transformer>
</transformers>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<phase>package</phase> <id>prepare-agent</id>
<goals> <goals>
<goal>shade</goal> <goal>prepare-agent</goal>
</goals> </goals>
</execution> </execution>
<execution>
<id>report</id>
<goals>
<goal>report</goal>
</goals>
<configuration>
<formats>
<format>XML</format>
</formats>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </plugins>