title: Package name without main.java in maven
body: <p>I develop my project in Eclipse with standard Maven directory layout. Sources are in src/main/java/com/mycompany directory. And it is required to put my source classes in package main.java.com.mycompany.
  When I build executable jar-file, I have to define the main class in Manifest.MF like: </p>
  
  <pre><code>    Main-Class: main.java.com.mycompany.MyMainClass
  </code></pre>
  
  <p>But I saw in a lot of examples (like configuring the mainClass attribute in maven-assembly-plugin or maven-jar-plugin) that class names are specified without main.java part. I just want to have</p>
  
  <pre><code>    Main-Class: com.mycompany.MyMainClass
  </code></pre>
  
  <p>I can't figure out how I can achieve this because I'm completely novice in Maven.</p>