title: How to generate MANIFEST.MF file during compile phase
body: <p>Standard way - using <code>maven-jar-plugin</code> - generates manifest file only during package phase and directly into jar file.</p>
  
  <p><strong>What I need is to generate manifest during compile phase and to be available in <code>&lt;target&gt;/classes/META-INF</code>.</strong></p>
  
  <p>My goal is to be able to read this manifest file in project running in debug mode in IntelliJ Idea. (Idea resolves in-project jar dependencies from <code>&lt;target&gt;/classes</code> instead of from <code>&lt;target&gt;/*.jar</code> - for hot-swap purpose).</p>
  
  <p>The only solution I know of so far is to actually create my own MANIFEST.MF in <code>src/main/java/resources/META-INF</code> and let it be filtered+copied during resources phase. But I want to avoid this solution, I want the manifest to be generated standard way using <code>&lt;archive&gt;</code> configuration in pom file.</p>