title: Building jar with maven-scala-plugin
body: <p>I created scala application and now I want to build jar.
  I run <code>mvn package</code> than I try to run jar by command</p>
  
  <p><code>java -jar target/burner-1.0-SNAPSHOT.jar</code></p>
  
  <p>and I see error:</p>
  
  <p><code>Failed to load Main-Class manifest attribute from</code></p>
  
  <p>How can I define Main-Class property?
  Do I need to create Manifest.mf? where?
  Or I need to have mainclass property somewhere in pom.xml?</p>
  
  <p><strong>Update:</strong>
  I have created src/main/resources/MANIFEST.MF file with contents</p>
  
  <pre><code>Manifest-Version: 1.0
  Archiver-Version: Plexus Archiver
  Created-By: Apache Maven
  Built-By: itsabear
  Main-Class: ru.dmteam.App
  Build-Jdk: 1.6.0_20
  </code></pre>
  
  <p>I did not forget line ending at the end of file.
  after <code>mvn package</code> I see new jar. I checked manifest.mf in this jar - it contains right main-class but when I type <code>java -jar target/burner-1.0-SNAPSHOT.jar</code> I still see an error <code>Failed to load Main-Class manifest attribute from</code></p>
  
  <p>My pom.xml <a href="http://pastie.org/1070483" rel="noreferrer">http://pastie.org/1070483</a></p>
  
  <p><strong>UPDATE 2</strong>
  I discovered that now there are two manifest.mf files in the jar.
  MANIFEST.MF and META-INF/MANIFEST.MF
  I moved my custom MANIFEST.MF to just created META-INF folder(in src/main/resources) but now  <code>mvn package</code> overrides it while creating jar...</p>