Skip to content

Commit 151e371

Browse files
committed
inherit jacoco plugin from parent
Signed-off-by: yue9944882 <[email protected]>
1 parent d016cfc commit 151e371

File tree

2 files changed

+46
-64
lines changed

2 files changed

+46
-64
lines changed

extended/pom.xml

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,6 @@
8383
<plugin>
8484
<groupId>org.jacoco</groupId>
8585
<artifactId>jacoco-maven-plugin</artifactId>
86-
<version>0.8.8</version>
87-
<executions>
88-
<execution>
89-
<id>jacoco-initialize</id>
90-
<goals>
91-
<goal>prepare-agent</goal>
92-
</goals>
93-
</execution>
94-
<execution>
95-
<id>jacoco-report</id>
96-
<phase>test</phase>
97-
<goals>
98-
<goal>report</goal>
99-
</goals>
100-
</execution>
101-
</executions>
10286
</plugin>
10387
<plugin>
10488
<groupId>org.apache.felix</groupId>
@@ -115,52 +99,4 @@
11599
</plugin>
116100
</plugins>
117101
</build>
118-
<profiles>
119-
<profile>
120-
<id>surefire-newerJava</id>
121-
<activation>
122-
<jdk>(1.8,)</jdk>
123-
</activation>
124-
<build>
125-
<plugins>
126-
<plugin>
127-
<groupId>org.apache.maven.plugins</groupId>
128-
<artifactId>maven-surefire-plugin</artifactId>
129-
<configuration>
130-
<argLine>
131-
@{argLine} -Xms512m -Xmx1500m --illegal-access=warn --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED
132-
</argLine>
133-
<parallel>methods</parallel>
134-
<perCoreThreadCount>false</perCoreThreadCount>
135-
<threadCount>1</threadCount>
136-
<forkCount>1</forkCount>
137-
<reuseForks>false</reuseForks>
138-
</configuration>
139-
</plugin>
140-
</plugins>
141-
</build>
142-
</profile>
143-
<profile>
144-
<id>surefire-java8</id>
145-
<activation>
146-
<jdk>1.8</jdk>
147-
</activation>
148-
<build>
149-
<plugins>
150-
<plugin>
151-
<groupId>org.apache.maven.plugins</groupId>
152-
<artifactId>maven-surefire-plugin</artifactId>
153-
<configuration>
154-
<argLine>@{argLine} -Xms512m -Xmx1500m</argLine>
155-
<parallel>methods</parallel>
156-
<perCoreThreadCount>false</perCoreThreadCount>
157-
<threadCount>1</threadCount>
158-
<forkCount>1</forkCount>
159-
<reuseForks>false</reuseForks>
160-
</configuration>
161-
</plugin>
162-
</plugins>
163-
</build>
164-
</profile>
165-
</profiles>
166102
</project>

pom.xml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,52 @@ limitations under the License.
529529
</build>
530530

531531
<profiles>
532+
<profile>
533+
<id>surefire-newerJava</id>
534+
<activation>
535+
<jdk>(1.8,)</jdk>
536+
</activation>
537+
<build>
538+
<plugins>
539+
<plugin>
540+
<groupId>org.apache.maven.plugins</groupId>
541+
<artifactId>maven-surefire-plugin</artifactId>
542+
<configuration>
543+
<argLine>
544+
@{argLine} -Xms512m -Xmx1500m --illegal-access=warn --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.time=ALL-UNNAMED
545+
</argLine>
546+
<parallel>methods</parallel>
547+
<perCoreThreadCount>false</perCoreThreadCount>
548+
<threadCount>1</threadCount>
549+
<forkCount>1</forkCount>
550+
<reuseForks>false</reuseForks>
551+
</configuration>
552+
</plugin>
553+
</plugins>
554+
</build>
555+
</profile>
556+
<profile>
557+
<id>surefire-java8</id>
558+
<activation>
559+
<jdk>1.8</jdk>
560+
</activation>
561+
<build>
562+
<plugins>
563+
<plugin>
564+
<groupId>org.apache.maven.plugins</groupId>
565+
<artifactId>maven-surefire-plugin</artifactId>
566+
<configuration>
567+
<argLine>@{argLine} -Xms512m -Xmx1500m</argLine>
568+
<parallel>methods</parallel>
569+
<perCoreThreadCount>false</perCoreThreadCount>
570+
<threadCount>1</threadCount>
571+
<forkCount>1</forkCount>
572+
<reuseForks>false</reuseForks>
573+
</configuration>
574+
</plugin>
575+
</plugins>
576+
</build>
577+
</profile>
532578
<profile>
533579
<id>release-sign-artifacts</id>
534580
<build>

0 commit comments

Comments
 (0)