简体   繁体   English

如何修复m2eclipse插件?

[英]How to fix m2eclipse plugin?

I have java maven project in Eclipse that depends from other projects and for near 1000 library jar. 我在Eclipse中有java maven项目,它依赖于其他项目和近1000个库jar。 But I cannot use m2eclipse at all. 但我根本不能使用m2eclipse。 For create Eclipse project is use eclipse maven plugin like: 对于创建Eclipse项目,请使用eclipse maven插件:

 mvn eclipse:eclipse -Dwtpversion=1.5

It works well. 它运作良好。 But when I go to Eclipse and click on m2eclipe - update dependencies - all library jars disappear! 但是当我去Eclipse并点击m2eclipe - 更新依赖项时 - 所有库jar都消失了! So for work I have disabled java projects as maven in Eclipse. 因此,对于工作,我在Eclipse中禁用了Java项目作为maven。 I suppose that there is some problem with eclipse internal variables. 我想eclipse内部变量存在一些问题。 Does it correct? 这是对的吗? What have I check? 我有什么检查? Does exist some log? 是否存在一些日志? Or this is common bug of m2eclipse plugin? 或者这是m2eclipse插件的常见错误? Thanks. 谢谢。

maven eclipse plugin (ie mvn eclipse:eclipse) no longer works with m2eclipse or its current version, m2e . maven eclipse插件 (即mvn eclipse:eclipse)不再适用于m2eclipse或其当前版本m2e

Assuming you have the latest Eclipse (Indigo, which comes with m2e), you should have better success opening the maven project directly (Import as Maven project). 假设您拥有最新的Eclipse(Indigo,它随m2e一起提供),您应该可以更好地直接打开maven项目(Import as Maven项目)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM