In my pom.xml, I have:
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>3.1</version>
<configuration></configuration>
</plugin>
to test the plugin, I'm doing:
mvn flyway:migrate
But I get an error:
[ERROR] No plugin found for prefix 'flyway' in the current project and in the pl
ugin groups [org.wildfly.plugins, org.flywaydb.plugins, org.apache.maven.plugins
, org.codehaus.mojo] available from the repositories [local (C:\Users\me\.
m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
What am I missing from my pom? the flyway plugin IS in central.
You should run mvn compile flyway:migrate
inside your project class path.
Suppose your has a project name bar
that store inside C:\project
directory.
C:\project\bar
.mvn compile flyway:migrate
instead of use mvn flyway:migrate
See also, First Steps: flywaydb with Maven
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With