title: JMH no main manifest attribute
body: <p>I've just created a Maven project using this command:</p>
  
  <pre><code>$ mvn archetype:generate \
        -DinteractiveMode=false \
        -DarchetypeGroupId=org.openjdk.jmh \
        -DarchetypeArtifactId=jmh-java-benchmark-archetype \
        -DgroupId=org.sample \
        -DartifactId=test \
        -Dversion=1.0
  </code></pre>
  
  <p>Then I do a <code>mvn clean install</code> followed by <code>java -jar test-1.0.jar</code></p>
  
  <p>The program gives me this message</p>
  
  <pre><code>no main manifest attribute, in target/test-1.0.jar 
  </code></pre>
  
  <p>I've looked in the manifest and there's no Main-Class attribute.</p>
  
  <p>This should have generated it:</p>
  
  <pre><code>&lt;plugin&gt;
              &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
              &lt;artifactId&gt;maven-shade-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.2&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;phase&gt;package&lt;/phase&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;shade&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;finalName&gt;${uberjar.name}&lt;/finalName&gt;
                          &lt;transformers&gt;
                              &lt;transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"&gt;
                                  &lt;mainClass&gt;org.openjdk.jmh.Main&lt;/mainClass&gt;
                              &lt;/transformer&gt;
                          &lt;/transformers&gt;
                          &lt;filters&gt;
                              &lt;filter&gt;
                                  &lt;!--
                                      Shading signed JARs will fail without this.
                                      http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
                                  --&gt;
                                  &lt;artifact&gt;*:*&lt;/artifact&gt;
                                  &lt;excludes&gt;
                                      &lt;exclude&gt;META-INF/*.SF&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.DSA&lt;/exclude&gt;
                                      &lt;exclude&gt;META-INF/*.RSA&lt;/exclude&gt;
                                  &lt;/excludes&gt;
                              &lt;/filter&gt;
                          &lt;/filters&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
  </code></pre>