Skip to content

Commit 86e293a

Browse files
committed
Configure dependency-check-maven to connect to a central database
QA-11411
1 parent bb932d3 commit 86e293a

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

pom.xml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@
7373
<argLine>-Xmx1024m</argLine>
7474
<bouncycastle.version>1.66</bouncycastle.version>
7575
<checkstyle.version>3.1.0</checkstyle.version>
76+
<dependencyCheck.version>6.0.3</dependencyCheck.version>
7677
<failsafe.version>3.0.0-M3</failsafe.version>
7778
<findsecbugs.version>1.8.0</findsecbugs.version>
7879
<integrationtests>com.itextpdf.test.annotations.type.IntegrationTest</integrationtests>
@@ -637,19 +638,29 @@
637638
<plugin>
638639
<groupId>org.owasp</groupId>
639640
<artifactId>dependency-check-maven</artifactId>
640-
<version>5.3.1</version>
641+
<version>${dependencyCheck.version}</version>
642+
<dependencies>
643+
<dependency>
644+
<groupId>mysql</groupId>
645+
<artifactId>mysql-connector-java</artifactId>
646+
<version>8.0.22</version>
647+
</dependency>
648+
</dependencies>
649+
<configuration>
650+
<autoUpdate>false</autoUpdate>
651+
<connectionString/>
652+
<databaseDriverName>com.mysql.cj.jdbc.Driver</databaseDriverName>
653+
<databasePassword/>
654+
<databaseUser/>
655+
<format>ALL</format>
656+
</configuration>
641657
<executions>
642658
<execution>
643659
<goals>
644660
<goal>aggregate</goal>
645661
</goals>
646662
</execution>
647663
</executions>
648-
<configuration>
649-
<format>ALL</format>
650-
<dataDirectory>${user.home}/security/owasp-nvd/</dataDirectory>
651-
<autoUpdate>false</autoUpdate>
652-
</configuration>
653664
</plugin>
654665
</plugins>
655666
</build>
@@ -811,4 +822,4 @@
811822
</properties>
812823
</profile>
813824
</profiles>
814-
</project>
825+
</project>

0 commit comments

Comments
 (0)