title: Flyway Java migrations not working in command line tool
body: <p>I just cannot get Java migrations get to be recognized and executed using the flyway command line tool.</p>
  
  <p>What I did so far:</p>
  
  <ol>
  <li>Download and extract Flyway (commandline version)</li>
  <li>Configured flyway.properties in the conf directory, setting the following properties
  <ul>
  <li>flyway.driver, flyway.url, flyway.user, flyway.password</li>
  </ul></li>
  <li>Added oracle JDBC driver to the jars directory</li>
  <li>Executed flyway.cmd init => Worked. History table was created.</li>
  <li>Added an SQL File to the ./sql directory V1_1__Some_sql.sql</li>
  <li><p>Executed flyway.cmd migrate => worked. DB was changed</p>
  
  <p>FINE SO FAR. Works as expected. Now the problematic part:</p></li>
  <li><p>Created a Java class in my IDE.</p>
  
  <pre><code>public class V1_2__Another_test implements JdbcMigration 
  {
  
     public void migrate(Connection connection) throws Exception 
     {
  
        PreparedStatement statement = connection.prepareStatement("INSERT INTO flyway_sample (name) VALUES ('My Name')");
  
        try {
           statement.execute();
        } finally {
           statement.close();
        }
     }
  }
  </code></pre></li>
  <li><p>Compiled the class, put it into a jar with name V1_2__Another_test.jar</p></li>
  <li>Placed the jar in sql or jars and tried to run flyway.cmd migrate. => Flyway ignores it.</li>
  <li>Tried to put the .class file into jars or sql => Flyway also ignores it.</li>
  <li>I use Flyway 2.1.1.</li>
  </ol>
  
  <p>What am I missing?</p>