Skip to content

Commit b88ccc7

Browse files
fduttonFaron Dutton
andauthored
Updates Jacoco configuration to ignore the embedded Apache code (#807)
Co-authored-by: Faron Dutton <[email protected]>
1 parent b2d6135 commit b88ccc7

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

pom.xml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,14 @@
299299
<plugin>
300300
<groupId>org.jacoco</groupId>
301301
<artifactId>jacoco-maven-plugin</artifactId>
302-
<version>0.8.8</version>
302+
<version>0.8.10</version>
303+
304+
<configuration>
305+
<excludes>
306+
<exclude>com/networknt/org/apache/commons/validator/**</exclude>
307+
</excludes>
308+
</configuration>
309+
303310
<executions>
304311
<!--
305312
| Prepares the property pointing to the JaCoCo runtime agent
@@ -398,8 +405,11 @@
398405
<module>
399406
<moduleInfo>
400407
<name>com.networknt.schema</name>
401-
<!-- export everything -->
402-
<exports>*;</exports>
408+
<!-- export everything except embedded Apache code -->
409+
<exports>
410+
!com.networknt.org*;
411+
*;
412+
</exports>
403413
<!-- declare services consumed by the artifact -->
404414
<addServiceUses>true</addServiceUses>
405415
</moduleInfo>

0 commit comments

Comments
 (0)