Greetings I am using a database script to create a database with 3 tables and populate the tables with data.
Database informatiom: Apache Derby database
Driver information: org.apache.derby.jdbc.EmbeddedDriver version 10.15.2.0 driver.
I am calling the database script from a pom.xml file. In the pom.xml, I am using the "sql-maven-plugin" plugin by "org.codehaus.mojo". This plugin runs the script file(s) listed in the pom. I use a simple script by apache derby that sets the classpath and the module-path environment variables for the command prompt session. When running the Maven from the Windows 10 command line "mvn clean install", I receive the following error:
Driver class not found: org.apache.derby.jdbc.EmbeddedDriver
I can fix this error by using an older version of the database driver (org.apache.derby.jdbc.EmbeddedDriver version 10.11.1.1) then the pom.xml executes the database script successfully and I end up with a database and 3 populated tables.
Any insights, what might cause of this anomalous behavior?
Thanks in advance.
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop