Flyway Unable to instantiate jdbc driver Flyway Unable to instantiate jdbc driver database database

Flyway Unable to instantiate jdbc driver


For the Maven plugin to work you must:

Add this dependency to your project (or just the plugin):

<dependency>    <groupId>postgresql</groupId>    <artifactId>postgresql</artifactId>    <version>9.1-901-1.jdbc4</version></dependency>

and configure the plugin like this:

<plugin>    <groupId>com.googlecode.flyway</groupId>    <artifactId>flyway-maven-plugin</artifactId>    <version>1.7</version>    <configuration>        <driver>org.postgresql.Driver</driver>        <url>jdbc:postgresql://...</url>        <user>...</user>        <password>...</password>    </configuration></plugin>


You also have to provide the Postgresql jdbc drivers as a maven dependency:

<dependency>    <groupId>postgresql</groupId>    <artifactId>postgresql</artifactId>    <version>9.1-902.jdbc4</version></dependency>