title: Cannot make executable jar using m2eclipse
body: <p>I have just started learning how to use m2eclipse. What I am trying to do is make a very simple program (Hello, World) and turn it into an executable jar. The java code itself is:</p>
  
  <p>public class Speak {</p>
  
  <pre><code>/**
   * @param args
   */
  public static void main(String[] args) {
      System.out.println("Meow!");
  }
  
  }
  </code></pre>
  
  <p>which runs fine as a Java application. I then try to use Maven to build the program, which it does, but then when I try to run the .jar it tells me "Failed to load Main-Class attribute from ...". This is the .pom that m2eclipse generated when I started the project:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org   /2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;org.felines&lt;/groupId&gt;
  &lt;artifactId&gt;tabbies&lt;/artifactId&gt;
  &lt;version&gt;0.0&lt;/version&gt;
  &lt;dependencies&gt;
  &lt;dependency&gt;
    &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
    &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
    &lt;version&gt;2.3.1&lt;/version&gt;
    &lt;type&gt;maven-plugin&lt;/type&gt;
    &lt;scope&gt;compile&lt;/scope&gt;
  &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>I have tried modifying the .pom, like so:</p>
  
  <pre><code>&lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  &lt;groupId&gt;org.felines&lt;/groupId&gt;
  &lt;artifactId&gt;tabbies&lt;/artifactId&gt;
  &lt;version&gt;0.0&lt;/version&gt;
  &lt;build&gt;
  &lt;plugins&gt;
      &lt;plugin&gt;
          &lt;artifactId&gt;maven-jar-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.3.1&lt;/version&gt;
          &lt;configuration&gt;
          &lt;archive&gt;
          &lt;manifest&gt;
               &lt;mainClass&gt;org.felines.Speak&lt;/mainClass&gt;
               &lt;packageName&gt;org.felines&lt;/packageName&gt;
          &lt;/manifest&gt;
              &lt;manifestEntries&gt;
                  &lt;mode&gt;development&lt;/mode&gt;
                  &lt;url&gt;${pom.url}&lt;/url&gt;
          &lt;/manifestEntries&gt;
          &lt;/archive&gt;
          &lt;/configuration&gt;
      &lt;/plugin&gt;
  &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>Now it says "Could not find the main class: org.felines.Speak. Program will exit." Any ideas? :(</p>
  
  <p>Thank you for your time!</p>