title: Execute flyway:migrate using maven on a sub module
body: <p>We have below maven structure for</p>
  
  <pre><code>main
      |
      pom.xml
      web
         |
         pom.xml
      persistance
                |
                pom.xml
      Service
             |
             pom.xml
  </code></pre>
  
  <p>We run "mvn clean install" inside the main folder and i have the flyway plugin in my 'web' module. When i do "mvn clean install flyway:migrate" on the web module, flyway runs fine. But when i try to do the same on main module it gives me error :</p>
  
  <blockquote>
    <p>[ERROR] No plugin found for prefix 'flyway' in the current project and
    in the pl ugin groups [org.apache.maven.plugins, org.codehaus.mojo]
    available from the rep ositories [local
    (C:\Users\balajig.m2\repository), central (<a href="https://repo.maven" rel="nofollow">https://repo.maven</a>.
    apache.org/maven2)] -> [Help 1]</p>
  </blockquote>
  
  <p>Its obvious that when i do "mvn clean install" on my main module flyway doesn't get invoked and placing configuration inside the 'compile' execution phase is not working either. </p>