M2Eclipse, META-INF/MANIFEST.MF

。_饼干妹妹 提交于 2019-12-07 03:08:27

问题


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


回答1:


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.




回答2:


I believe this is caused by the WTP addon for m2eclipse. If you aren't using it, try uninstalling the WTP Extras.




回答3:


It's non-maven behaviour which I think is down to WTP being 'naughty'. It really shouldn't add anything to your source folders, and also this behaviour should not just happen to pick one of a number of source folders. I've seen it add this to src/test/java too.



来源:https://stackoverflow.com/questions/4346624/m2eclipse-meta-inf-manifest-mf

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!