Installing the JDBC driver from a public Maven repository
Since MySQL and H2 drivers are available in public repositories, they can be installed in one step using an bundle:install command in the container.
Here are the installation instructions for each of these (change the database version numbers if applicable):
MySQL 5.x:
MySQL 8.x:bundle:install mvn:mysql/mysql-connector-java/5.1.18
bundle:install mvn:mysql/mysql-connector-java/8.0.27
-
H2:
bundle:install -s mvn:com.h2database/h2/1.3.165