M2Eclipse,META-INF / MANIFEST.MF [英] M2Eclipse, META-INF/MANIFEST.MF

查看:125
本文介绍了M2Eclipse,META-INF / MANIFEST.MF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Eclipse中使用了M2Eclipse插件。



我不知道为什么每次在Eclipse中导入Maven项目时,它总是生成一个空的
- src / main / META -INF / MANIFEST.MF文件(jar包装项目)
- src / main / webapp / META-INF / MANIFEST.MF文件(war-packages projects)



我觉得这有点恼人;-)有人知道如何禁用此行为?



感谢

解决方案

这是 fixed in m2e-wtp 0.13.0。最新的m2e-wtp版本可以在 http://download.jboss.org/jbosstools找到/ updates / m2eclipse-wtp /



问题的根本原因是WTP的动态Web Facet,它在安装时自动创建一个MANIFEST.MF。 m2e-wtp现在删除文件,如果它是由WTP创建的,但留下任何现有的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

解决方案

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.

这篇关于M2Eclipse,META-INF / MANIFEST.MF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆