Skip to content

Commit 3d4b9af

Browse files
authored
Improvement on build time and new quality profile (#4014)
1 parent 0c4bd53 commit 3d4b9af

1 file changed

Lines changed: 120 additions & 102 deletions

File tree

pom.xml

Lines changed: 120 additions & 102 deletions
Original file line numberDiff line numberDiff line change
@@ -777,46 +777,6 @@
777777
</execution>
778778
</executions>
779779
</plugin>
780-
<plugin>
781-
<groupId>org.jacoco</groupId>
782-
<artifactId>jacoco-maven-plugin</artifactId>
783-
<version>${cs.jacoco-plugin.version}</version>
784-
</plugin>
785-
<plugin>
786-
<groupId>org.openclover</groupId>
787-
<artifactId>clover-maven-plugin</artifactId>
788-
<version>${cs.clover-maven-plugin.version}</version>
789-
<configuration>
790-
<flushPolicy>threaded</flushPolicy>
791-
<flushInterval>100</flushInterval>
792-
<targetPercentage>0%</targetPercentage>
793-
<generateHtml>true</generateHtml>
794-
<generateXml>true</generateXml>
795-
<generateHistorical>true</generateHistorical>
796-
</configuration>
797-
<executions>
798-
<execution>
799-
<id>main</id>
800-
<phase>verify</phase>
801-
<goals>
802-
<goal>instrument</goal>
803-
<goal>aggregate</goal>
804-
<goal>check</goal>
805-
<goal>log</goal>
806-
</goals>
807-
</execution>
808-
<execution>
809-
<id>site</id>
810-
<phase>pre-site</phase>
811-
<goals>
812-
<goal>instrument</goal>
813-
<goal>aggregate</goal>
814-
<!-- We save a history point in order to have data to generate a historical report -->
815-
<goal>save-history</goal>
816-
</goals>
817-
</execution>
818-
</executions>
819-
</plugin>
820780
</plugins>
821781
<pluginManagement>
822782
<plugins>
@@ -1085,22 +1045,6 @@
10851045
</excludes>
10861046
</configuration>
10871047
</plugin>
1088-
<plugin>
1089-
<groupId>org.owasp</groupId>
1090-
<artifactId>dependency-check-maven</artifactId>
1091-
<version>${cs.owasp.dependency-checker-plugin.version}</version>
1092-
<configuration>
1093-
<skipProvidedScope>true</skipProvidedScope>
1094-
<skipRuntimeScope>true</skipRuntimeScope>
1095-
</configuration>
1096-
<executions>
1097-
<execution>
1098-
<goals>
1099-
<goal>check</goal>
1100-
</goals>
1101-
</execution>
1102-
</executions>
1103-
</plugin>
11041048
<plugin>
11051049
<groupId>org.apache.maven.plugins</groupId>
11061050
<artifactId>maven-compiler-plugin</artifactId>
@@ -1214,34 +1158,14 @@
12141158
<version>${cs.surefire-plugin.version}</version>
12151159
<configuration>
12161160
<useSystemClassLoader>false</useSystemClassLoader>
1217-
<argLine>@{argLine} -Djava.security.egd=file:/dev/./urandom -noverify</argLine>
1161+
<argLine>-Djava.security.egd=file:/dev/./urandom -noverify</argLine>
12181162
</configuration>
12191163
</plugin>
12201164
<plugin>
12211165
<groupId>org.apache.maven.plugins</groupId>
12221166
<artifactId>maven-failsafe-plugin</artifactId>
12231167
<version>${cs.failsafe-plugin.version}</version>
12241168
</plugin>
1225-
<plugin>
1226-
<groupId>org.jacoco</groupId>
1227-
<artifactId>jacoco-maven-plugin</artifactId>
1228-
<version>${cs.jacoco-plugin.version}</version>
1229-
<executions>
1230-
<execution>
1231-
<id>prepare-coverage-agent</id>
1232-
<goals>
1233-
<goal>prepare-agent</goal>
1234-
</goals>
1235-
</execution>
1236-
<execution>
1237-
<id>produce-coverage-reports</id>
1238-
<phase>test</phase>
1239-
<goals>
1240-
<goal>report</goal>
1241-
</goals>
1242-
</execution>
1243-
</executions>
1244-
</plugin>
12451169
<plugin>
12461170
<groupId>org.apache.maven.plugins</groupId>
12471171
<artifactId>maven-site-plugin</artifactId>
@@ -1252,18 +1176,6 @@
12521176
</build>
12531177
<reporting>
12541178
<plugins>
1255-
<plugin>
1256-
<groupId>org.owasp</groupId>
1257-
<artifactId>dependency-check-maven</artifactId>
1258-
<version>${cs.owasp.dependency-checker-plugin.version}</version>
1259-
<reportSets>
1260-
<reportSet>
1261-
<reports>
1262-
<report>aggregate</report>
1263-
</reports>
1264-
</reportSet>
1265-
</reportSets>
1266-
</plugin>
12671179
<plugin>
12681180
<groupId>com.github.spotbugs</groupId>
12691181
<artifactId>spotbugs-maven-plugin</artifactId>
@@ -1283,19 +1195,6 @@
12831195
<artifactId>maven-resources-plugin</artifactId>
12841196
<version>${cs.resources-plugin.version}</version>
12851197
</plugin>
1286-
<plugin>
1287-
<groupId>org.jacoco</groupId>
1288-
<artifactId>jacoco-maven-plugin</artifactId>
1289-
<version>${cs.jacoco-plugin.version}</version>
1290-
<reportSets>
1291-
<reportSet>
1292-
<reports>
1293-
<!-- select non-aggregate reports -->
1294-
<report>report</report>
1295-
</reports>
1296-
</reportSet>
1297-
</reportSets>
1298-
</plugin>
12991198
</plugins>
13001199
</reporting>
13011200
<profiles>
@@ -1347,6 +1246,125 @@
13471246
<module>vmware-base</module>
13481247
</modules>
13491248
</profile>
1249+
<profile>
1250+
<id>quality</id>
1251+
<activation>
1252+
<activeByDefault>false</activeByDefault>
1253+
</activation>
1254+
<build>
1255+
<plugins>
1256+
<plugin>
1257+
<groupId>org.jacoco</groupId>
1258+
<artifactId>jacoco-maven-plugin</artifactId>
1259+
<version>${cs.jacoco-plugin.version}</version>
1260+
</plugin>
1261+
<plugin>
1262+
<groupId>org.openclover</groupId>
1263+
<artifactId>clover-maven-plugin</artifactId>
1264+
<version>${cs.clover-maven-plugin.version}</version>
1265+
<configuration>
1266+
<flushPolicy>threaded</flushPolicy>
1267+
<flushInterval>100</flushInterval>
1268+
<targetPercentage>0%</targetPercentage>
1269+
<generateHtml>true</generateHtml>
1270+
<generateXml>true</generateXml>
1271+
<generateHistorical>true</generateHistorical>
1272+
</configuration>
1273+
<executions>
1274+
<execution>
1275+
<id>main</id>
1276+
<phase>verify</phase>
1277+
<goals>
1278+
<goal>instrument</goal>
1279+
<goal>aggregate</goal>
1280+
<goal>check</goal>
1281+
<goal>log</goal>
1282+
</goals>
1283+
</execution>
1284+
<execution>
1285+
<id>site</id>
1286+
<phase>pre-site</phase>
1287+
<goals>
1288+
<goal>instrument</goal>
1289+
<goal>aggregate</goal>
1290+
<!-- We save a history point in order to have data to generate a historical report -->
1291+
<goal>save-history</goal>
1292+
</goals>
1293+
</execution>
1294+
</executions>
1295+
</plugin>
1296+
</plugins>
1297+
<pluginManagement>
1298+
<plugins>
1299+
<plugin>
1300+
<groupId>org.owasp</groupId>
1301+
<artifactId>dependency-check-maven</artifactId>
1302+
<version>${cs.owasp.dependency-checker-plugin.version}</version>
1303+
<configuration>
1304+
<skipProvidedScope>true</skipProvidedScope>
1305+
<skipRuntimeScope>true</skipRuntimeScope>
1306+
</configuration>
1307+
<executions>
1308+
<execution>
1309+
<goals>
1310+
<goal>check</goal>
1311+
</goals>
1312+
</execution>
1313+
</executions>
1314+
</plugin>
1315+
<plugin>
1316+
<groupId>org.jacoco</groupId>
1317+
<artifactId>jacoco-maven-plugin</artifactId>
1318+
<version>${cs.jacoco-plugin.version}</version>
1319+
<executions>
1320+
<execution>
1321+
<id>prepare-coverage-agent</id>
1322+
<goals>
1323+
<goal>prepare-agent</goal>
1324+
</goals>
1325+
</execution>
1326+
<execution>
1327+
<id>produce-coverage-reports</id>
1328+
<phase>test</phase>
1329+
<goals>
1330+
<goal>report</goal>
1331+
</goals>
1332+
</execution>
1333+
</executions>
1334+
</plugin>
1335+
</plugins>
1336+
</pluginManagement>
1337+
</build>
1338+
<reporting>
1339+
<plugins>
1340+
<plugin>
1341+
<groupId>org.owasp</groupId>
1342+
<artifactId>dependency-check-maven</artifactId>
1343+
<version>${cs.owasp.dependency-checker-plugin.version}</version>
1344+
<reportSets>
1345+
<reportSet>
1346+
<reports>
1347+
<report>aggregate</report>
1348+
</reports>
1349+
</reportSet>
1350+
</reportSets>
1351+
</plugin>
1352+
<plugin>
1353+
<groupId>org.jacoco</groupId>
1354+
<artifactId>jacoco-maven-plugin</artifactId>
1355+
<version>${cs.jacoco-plugin.version}</version>
1356+
<reportSets>
1357+
<reportSet>
1358+
<reports>
1359+
<!-- select non-aggregate reports -->
1360+
<report>report</report>
1361+
</reports>
1362+
</reportSet>
1363+
</reportSets>
1364+
</plugin>
1365+
</plugins>
1366+
</reporting>
1367+
</profile>
13501368
<profile>
13511369
<id>disablecheckstyle</id>
13521370
<build>

0 commit comments

Comments
 (0)