title: Package org.apache.flink.api.java.io.jdbc does not exist
body: <p>I want to use the JDBC connector in an Apache Flink application. But maven doesn't find the flink JDBC package.
  I added the following dependency to my pom.xml in the &quot;build-jar&quot; section:</p>
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;org.apache.flink&lt;/groupId&gt;
      &lt;artifactId&gt;flink-connector-jdbc_2.11&lt;/artifactId&gt;
      &lt;version&gt;1.13.1&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  <p>The jar files were downloaded by maven and are available in the local maven directory.
  My code looks like this.</p>
  <pre><code>// standard, not relevant flink imports
  import org.apache.flink.api.java.io.jdbc.JDBCInputFormat;
  import org.apache.flink.api.java.io.jdbc.JDBCOutputFormat;
  
  
  public class BatchLayerExec {
  
      public static void main( final String[] args ) {
  
          //Definition of Strings for the connection to the database
  
          try {
              ExecutionEnvironment environment = ExecutionEnvironment.getExecutionEnvironment();
  
              final TypeInformation&lt;?&gt;[] fieldTypes =
                      new TypeInformation&lt;?&gt;[] { ... };
  
              final RowTypeInfo rowTypeInfo = new RowTypeInfo(fieldTypes);
  
              //Define Input Format Builder
              JDBCInputFormat.JDBCInputFormatBuilder inputBuilder = JDBCInputFormat
                  .buildJDBCInputFormat()
                  .setDrivername(driverName)
                  .setDBUrl(dbURL + sourceDB)
                  .setQuery(selectQuery)
                  .setRowTypeInfo(rowTypeInfo)
                  .setUsername(dbUser)
                  .setPassword(dbPassword)
                  .setRowTypeInfo(rowTypeInfo);
  
              DataSet&lt;Row&gt; sourceTable = environment.createInput(inputBuilder.finish());
   
              // Transformation
              // ...
  
              // Print for debugging
              transformedTable.print();
  
              // Output transformed data to output table
              //Define Output Format Builder
              JDBCOutputFormat.JDBCOutputFormatBuilder outputBuilder = JDBCOutputFormat
                      .buildJDBCOutputFormat()
                      .setDrivername(driverName)
                      .setDBUrl(dbURL + sourceDB)
                      .setQuery(insertQuery)
                      .setSqlTypes(new int[] { ... })
                      .setUsername(dbUser)
                      .setPassword(dbPassword);
  
              //Define dataSink
              transformedTable.output(outputBuilder.finish());
  
              environment.execute();
  
          } catch(final Exception e) {
              System.out.println(e);
          }
      }
  }
  </code></pre>
  <p>But during the build process with <code>mvn clean package -Pbuild-jar</code>, I get the error message:
  <code>package org.apache.flink.api.java.io.jdbc does not exist</code>.
  I removed some not relevant definitions and steps in the code (see comments). Please comment if you need more information.</p>