Search code examples
eclipsemaven-2eclipse-pluginm2eclipse

M2Eclipse, META-INF/MANIFEST.MF


I use the M2Eclipse plugin in Eclipse.

And I don't know for what reason, each time I import a Maven project in Eclipse, it always generates an empty - src/main/META-INF/MANIFEST.MF file (jar-packaged projects) - src/main/webapp/META-INF/MANIFEST.MF file (war-packaged projects)

I find this a bit annoying ;-) Does someone know how to disable this behavior ?

Thanks


Solution

  • This was fixed in m2e-wtp 0.13.0. Latest m2e-wtp version can be found at http://download.jboss.org/jbosstools/updates/m2eclipse-wtp/

    The root cause of the problem is WTP's Dynamic Web Facet, which automatically creates a MANIFEST.MF when it's installed. m2e-wtp now removes the file if it was created by WTP, but leaves any existing MANIFEST.MF.