Skip to content

Commit ff50c34

Browse files
authored
build: skip jacoco coverage in example module (#17)
Signed-off-by: ZhangJian He <[email protected]>
1 parent e7e618e commit ff50c34

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

mtconnect-examples/pom.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@
1111

1212
<artifactId>mtconnect-examples</artifactId>
1313

14+
<properties>
15+
<jacoco.skip>true</jacoco.skip>
16+
</properties>
17+
1418
<dependencies>
1519
<dependency>
1620
<groupId>org.slf4j</groupId>

pom.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2424
<src.dir>src/main/java</src.dir>
2525
<jacoco.overall.exec>${maven.multiModuleProjectDirectory}/target/jacoco/jacoco.exec</jacoco.overall.exec>
26+
<jacoco.skip>false</jacoco.skip>
2627
<!-- dependency -->
2728
<http-facade.version>0.2.0</http-facade.version>
2829
<huaweicloud-sdk.version>3.1.117</huaweicloud-sdk.version>
@@ -92,6 +93,7 @@
9293
<id>prepare-agent</id>
9394
<configuration>
9495
<append>true</append>
96+
<skip>${jacoco.skip}</skip>
9597
</configuration>
9698
<goals>
9799
<goal>prepare-agent</goal>
@@ -100,6 +102,9 @@
100102
<execution>
101103
<id>report</id>
102104
<phase>validate</phase>
105+
<configuration>
106+
<skip>${jacoco.skip}</skip>
107+
</configuration>
103108
<goals>
104109
<goal>report</goal>
105110
</goals>

0 commit comments

Comments
 (0)