-->

如何将M2E eclipse插件与Eclipse互动?(How does the m2e eclip

2019-07-02 13:47发布

我是一个Eclipse的权力,谁忽视行家由于历史贫穷的Maven / Eclipse集成。 M2E似乎是成熟的,我把它出了一个严重的试驾。

我想了解Eclipse中如何M2E的作品,这样我就可以更好地得到两顺利合作,并了解所发生的神秘仍错误消息和问题。

我曾尝试使用Google的M2E Eclipse集成架构的解释,并没有发现任何提供了良好的帐户整合是如何工作的。 而只是很多零散的博客文章所有网站上的。

任何人都可以提供的M2E如何桥梁世界的世界和Maven视图的Eclipse视图之间的差距了坚实的概述? 尤其是如何整合Maven到增量构建月食呢? 什么是使用M2E Eclipse的稳定性/性能的影响。

Answer 1:

I have found the details I was looking for in a Presentation from Eclipse Con titled "m2e, an exercise in mixing oil and water"

http://www.eclipsecon.org/europe2012/sites/eclipsecon.org.europe2012/files/EclipseConEU2012-m2e-talk.pdf

Abstract:

m2e is a popular Eclipse IDE plugin with stated project goal "to provide a first-class Apache Maven support in the Eclipse IDE". In this talk I will give an overview of Maven/Eclipse integration approach implemented by m2e, highlight differences between Maven and Eclipse that make proper integration difficult or impossible and will discuss possible ways to improve the integration. The talk is targeted at Eclipse and Maven developers who want to better understand challenges of Maven/Eclipse integration and advanced m2e users who want to know what happens "under the hood".



Answer 2:

Sonatype的有关于它的相当不错的书在http://www.sonatype.com/Support/Books/Developing-with-Eclipse-Maven



Answer 3:

总之,M2E将设置您的Eclipse基础上,你的项目的Maven的POM,它为您提供访问Maven的命令

这些都是一些最明显的事情做M2E的:

  1. 设置根据POM源文件夹和输出目录
  2. 设置依赖性/库和聚甲醛项目依赖基
  3. 在Maven插件使用相应的Eclipse插件的基础(如果M2E知道如何处理它)等。
  4. 允许您运行Maven目标
  5. 等等.....

这既不是正式的,也没有一个准确的描述,但我希望它给一些基本的想法:P



文章来源: How does the m2e eclipse plugin interact with eclipse?