Can't find Flyway maven plugin -


in pom.xml, have:

 <plugin>     <groupid>org.flywaydb</groupid>     <artifactid>flyway-maven-plugin</artifactid>     <version>3.1</version>     <configuration></configuration>  </plugin> 

to test plugin, i'm doing:

mvn flyway:migrate 

but error:

[error] no plugin found prefix 'flyway' in current project , in pl ugin groups [org.wildfly.plugins, org.flywaydb.plugins, org.apache.maven.plugins , org.codehaus.mojo] available repositories [local (c:\users\me\. m2\repository), central (https://repo.maven.apache.org/maven2)] -> [help 1] 

what missing pom? flyway plugin in central.

you should run mvn compile flyway:migrate inside project class path.

suppose has project name bar store inside c:\project directory.

  • you should open command prompt , change change directories c:\project\bar.
  • then, run mvn compile flyway:migrate instead of use mvn flyway:migrate

see also, first steps: flywaydb maven


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -