title: Can't run jar file on command line with Maven
body: <p>I am trying to run a jar file that has been packaged by Maven.  When I run <code>java -jar target/java-prac-1.0-SNAPSHOT.jar</code> I get the following output: 
  <code>no main manifest attribute, in target/java-prac-1.0-SNAPSHOT.jar</code></p>
  
  <p>pom.xml</p>
  
  <pre><code>
  &lt;?xml version="1.0" encoding="UTF-8"?&gt;                                                                                               
  &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;localdomain.localhost.tutorial&lt;/groupId&gt;
      &lt;artifactId&gt;java-prac&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
      &lt;dependencies&gt;&lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
  
              &lt;plugin&gt;
                  &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
                  &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
                  &lt;configuration&gt;
                      &lt;source&gt;1.6&lt;/source&gt;
                      &lt;target&gt;1.6&lt;/target&gt;
                      &lt;manifest&gt;
                         &lt;mainClass&gt;localdomain.localhost.tutorial.Main&lt;/mainClass&gt;
  
                      &lt;/manifest&gt;
                  &lt;/configuration&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
  &lt;/build&gt;
  &lt;/project&gt;           
  
  </code></pre>
  
  <p>My MANIFEST.MF file looks like </p>
  
  <pre><code>
  Manifest-Version: 1.0                                                                                                            
  Main-Class: localdomain.localhost.tutorial.Main
  </code></pre>
  
  <p>The interesting thing is that when I run <code>ls target/classes</code>, the 'META-INF/' folder is listed.  So the file seems to be in the jar file, java just can't find it for some reason. </p>