How does the m2e eclipse plugin interact with eclipse?

后端 未结 3 935
鱼传尺愫
鱼传尺愫 2021-01-01 06:55

I am an eclipse power and who has ignored maven due to the historically poor maven / eclipse integration. m2e seems to be maturing and I am taking it out for a serious test

相关标签:
3条回答
  • 2021-01-01 07:11

    Sonatype has a pretty good book about it at http://www.sonatype.com/Support/Books/Developing-with-Eclipse-Maven

    0 讨论(0)
  • 2021-01-01 07:23

    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".

    0 讨论(0)
  • 2021-01-01 07:31

    In short, m2e will setup your Eclipse base on the Maven POMs of your projects, and it provides you access to Maven commands

    these are some of the most obvious things m2e done:

    1. setup the source folder and output directory according to POM
    2. Setup dependencies/libraries and project dependency base on POM
    3. Use corresponding Eclipse plugins base on Maven plugins (if M2E knows how to deal with it) etc.
    4. Allow you to run Maven goals
    5. etc.....

    It is neither a formal nor a accurate description, but I wish it give some basic idea :P

    0 讨论(0)
提交回复
热议问题