Skip to content

Commit a519a24

Browse files
committed
Add OWASP dependency check
Generates reports that are consumed by SonarQube, does not fail the build by itself QA-7800 QA-6408
1 parent 0eb7f2b commit a519a24

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

pom.xml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@
6868
<system>jenkins-ci</system>
6969
<url>https://jenkins.itextsupport.com/</url>
7070
</ciManagement>
71+
7172
<properties>
7273
<argLine>-Xmx1024m</argLine>
7374
<bouncycastle.version>1.64</bouncycastle.version>
@@ -80,7 +81,7 @@
8081
<itext.legacy.version>5.5.13.1</itext.legacy.version>
8182
<jacoco.version>0.8.4</jacoco.version>
8283
<java.version>1.7</java.version>
83-
<javadoc-additionalOptions/>
84+
<javadoc-additionalOptions />
8485
<javadoc-link>https://docs.oracle.com/javase/8/docs/api/</javadoc-link>
8586
<javadoc.version>3.0.1</javadoc.version>
8687
<jfreechart.version>1.0.19</jfreechart.version>
@@ -101,10 +102,13 @@
101102
<slf4j.version>1.7.13</slf4j.version>
102103
<slowtests>com.itextpdf.test.annotations.type.SlowTest</slowtests>
103104
<sonar.clirr.reportPath>${project.build.directory}/clirr-report.txt</sonar.clirr.reportPath>
105+
<sonar.dependencyCheck.htmlReportPath>target/dependency-check-report.html</sonar.dependencyCheck.htmlReportPath>
106+
<sonar.dependencyCheck.reportPath>target/dependency-check-report.xml</sonar.dependencyCheck.reportPath>
104107
<spotbugs.version>3.1.11</spotbugs.version>
105108
<surefire.version>3.0.0-M3</surefire.version>
106109
<unittests>com.itextpdf.test.annotations.type.UnitTest</unittests>
107110
</properties>
111+
108112
<repositories>
109113
<repository>
110114
<releases>
@@ -154,6 +158,7 @@
154158
<scope>test</scope>
155159
</dependency>
156160
</dependencies>
161+
157162
<build>
158163
<finalName>itext7-${project.artifactId}-${project.version}</finalName>
159164
<plugins>
@@ -439,8 +444,26 @@
439444
</execution>
440445
</executions>
441446
</plugin>
447+
<plugin>
448+
<groupId>org.owasp</groupId>
449+
<artifactId>dependency-check-maven</artifactId>
450+
<version>5.2.4</version>
451+
<executions>
452+
<execution>
453+
<phase>verify</phase>
454+
<goals>
455+
<goal>aggregate</goal>
456+
</goals>
457+
</execution>
458+
</executions>
459+
<configuration>
460+
<format>XML</format>
461+
<prettyPrint>true</prettyPrint>
462+
</configuration>
463+
</plugin>
442464
</plugins>
443465
</build>
466+
444467
<reporting>
445468
<plugins>
446469
<plugin>

0 commit comments

Comments
 (0)