We've switched from a local H2 database to a centralized MySQL database. See previous messages on this mailing list. This required changes in the
pom.xml.
What I cannot find, is how to set the dependency on the mysql-connector-java dependency.
This is the
pom.xml snippet:
<plugin>
<groupId>org.owasp</groupId>
<artifactId>dependency-check-maven</artifactId>
<version>${dependencyCheck.version}</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.22</version>
</dependency>
</dependencies>
<configuration>
<autoUpdate>false</autoUpdate>
<connectionString />
<databaseDriverName>com.mysql.cj.jdbc.Driver</databaseDriverName>
<databasePassword />
<databaseUser />
<format>ALL</format>
</configuration>
<executions>
<execution>
<goals>
<goal>aggregate</goal>
</goals>
</execution>
</executions>
</plugin>
How do I translate this part to a mvn commandline? I know how to do everything else.
(Intentionally left blank here: connectionString, databaseUser, databasePassword. These are overridden by Jenkins secrets.)
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.22</version>
</dependency>
</dependencies>
To summarize: what do I add after mvn org.owasp:dependency-check-maven:6.0.3:aggregate -DautoUpdate=false -DdatabaseDriverName=com.mysql.cj.jdbc.Driver -Dformat=ALL -DdataDirectory='' to get a working MySQL connection?