title: Flink: Jar file contains no main class
body: <p>When trying to execute a Flink job, I have this error message :</p>
  
  <pre><code>org.apache.flink.client.program.ProgramInvocationException: Neither a 'Main-Class', nor a 'program-class' entry was found in the jar file.
  </code></pre>
  
  <p>Although in my pom, I declare the main class as:</p>
  
  <pre><code>     &lt;plugin&gt;
          &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.5&lt;/version&gt;
          &lt;configuration&gt;
            &lt;archive&gt;
              &lt;manifestEntries&gt;
                &lt;Main-Class&gt;com.package.Main&lt;/Main-Class&gt;
              &lt;/manifestEntries&gt;
            &lt;/archive&gt;
          &lt;/configuration&gt;
        &lt;/plugin&gt;
  </code></pre>
  
  <p>Can someone show me what I have missed ?</p>
  
  <p>Thank you</p>