In order for the Maven plugin to work, you must:
Add this dependency to your project (or just a plugin):
<dependency> <groupId>postgresql</groupId> <artifactId>postgresql</artifactId> <version>9.1-901-1.jdbc4</version> </dependency>
and configure the plugin as follows:
<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>
source share