哪个是最好的Maven Eclipse插件?

时间:2023-01-19 18:28:55

There is two available Eclipse plugins for Maven :

Maven有两个可用的Eclipse插件:

m2eclipse seems to be the oldest but the more robust. Is there any key differences between the two ?

m2eclipse似乎是最古老的,但更健壮。这两者之间有什么关键的区别吗?

Which one should be chosen for a project starting today and why ?

从今天开始的项目应该选择哪一个,为什么?

UPDATE: m2eclipse is moving to eclipse.org and will be included in the Indigo release train (Eclipse 3.7). See m2e at Eclipse: What will this mean for you? and m2eclipse is moving to eclipse.org!. The accepted answer is thus even more correct.

更新:m2eclipse正在迁移到eclipse.org,并将包含在Indigo发行版中(Eclipse 3.7)。参见Eclipse中的m2e:这对您意味着什么?m2eclipse正在转向eclipse.org。因此,公认的答案更加正确。

9 个解决方案

#1


42  

I choose m2eclipse since it is stable and have all that I need. Especially ability to resolve dependencies inside workspace.

我选择m2eclipse,因为它是稳定的,并且拥有我所需要的一切。特别是解决工作空间内依赖关系的能力。

I tried the other one some time ago and didn't like it. It was to buggy so I gave up quickly.

我前些时候试过另一种,但不喜欢。因为车坏了,所以我很快就放弃了。

#2


12  

The side by side comparison is moved to http://web.archive.org/web/20150526230611/http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

并行比较转移到http://web.archive.org/web/20150526230611/http:// docs.codehaus.org/display/mavenuser/eclipse +Integration

#3


4  

For me as a complete Maven-newbie the m2eclipse plugin worked quite well. We manage around 15 projects with it. The nested Maven projects will be flat in Eclipse (as it does not support nested projects), but all of them were automatically set up the right way, so everything works fine. Up to now I never needed to manually invoke a Maven command, for me using the preconfigured "run as" launch configurations did their job quite well.

对我来说,作为一个完整的maven新手,m2eclipse插件运行得非常好。我们用它管理大约15个项目。嵌套的Maven项目将在Eclipse中是扁平的(因为它不支持嵌套项目),但是它们都是自动设置为正确的方式,所以一切都很正常。到目前为止,我还不需要手动调用Maven命令,对于我来说,使用预先配置的“作为启动”的启动配置完成了它们的工作。

For me the quality of m2eclipse can be judged by this simple example: If you run Eclipse on a JRE instead of JDK, m2eclipse shows a warning that some of its features rely on a JDK. Nevertheless it still works on the JRE. And the warning dialog has hyperlinks to the Eclipse documentation about command line arguments and to the "Installed JREs" preferences, so you can easily fix the wrong Java VM.

对我来说,m2eclipse的质量可以通过这个简单的示例来判断:如果您在JRE上而不是在JDK上运行Eclipse,那么m2eclipse显示了一个警告,它的一些特性依赖于JDK。尽管如此,它仍然适用于JRE。警告对话框中有关于命令行参数的Eclipse文档和“已安装的JREs”首选项的超链接,因此您可以很容易地修复错误的Java VM。

That said I cannot speak for or against IAM, as I never used it due to the good m2eclipse experience.

也就是说,我不能支持或反对我的am,因为我从来没有使用过它,因为我有很好的m2eclipse经验。

#4


3  

Side by side comparison of Maven plugins for Eclipse. It haven't been updated to recently added features. For example, see New and Noteworthy page for m2eclipse.

并排比较Eclipse的Maven插件。它还没有更新到最近添加的特性。例如,请参阅m2eclipse的新和值得注意的页面。

#5


3  

m2eclipse is ok (a lot more reliable than it was 1-2 years ago), but m2eclipse extras (which you need for WTP integration - WTP gives you the ability to run a server in the IDE) is a different matter - and not supported by Codehaus. Several times a week you will find that it hasn't copied resources to the appserver, or you get a NPE, or some other problem.

m2eclipse还可以(比1-2年前要可靠得多),但是m2eclipse附加功能(WTP集成所需的功能——WTP使您能够在IDE中运行服务器)则是另一回事——并没有Codehaus的支持。每周有几次您会发现它没有将资源复制到appserver,或者得到NPE,或者其他问题。

I have not used Eclipse IAM but I discovered this page whilst looking for alternatives to m2e because of these WTP issues. Intellij is calling, I think.

我还没有使用Eclipse IAM,但是由于WTP问题,我在寻找m2e的替代品时发现了这个页面。我想,Intellij正在打电话。

#6


2  

m2eclipse is fine for the small projects. But it has a very poor performance in huge enterprise projects. Even a smallest change in POMs would cause this plugin to "update dependencies" for hours...

对于小型项目来说,m2eclipse是合适的。但它在大型企业项目中表现很差。即使是最小的改变,POMs也会导致这个插件“更新依赖”数小时……

Since we switched to IAM, the problem's almost gone. Even if it takes a while for it to cope with the POM changes, it is still like minutes compared to hours (m2e).

自从我们改用IAM后,问题几乎消失了。即使它需要一段时间来应对POM的变化,它仍然像是分钟而不是小时(m2e)。

Choose:

选择:

  • m2e - if your project is small and you like fancy features like dependency trees
  • m2e—如果您的项目很小,并且您喜欢依赖树这样的奇特特性
  • iam - if you need performance
  • 如果你需要性能

#7


1  

I used m2eclipse. But I did never manage to launch the tests or the whole project from within eclipse (the project had nested folders for various sub-modules). When I used it they said support for that was experimental. The most I could get was syntax-checking and such. For the rest I used the console.

我用m2eclipse。但是我从未成功地从eclipse中启动测试或整个项目(该项目为各种子模块嵌套了文件夹)。当我使用它的时候,他们说支持它是实验性的。我能得到的最多的就是语法检查等等。剩下的时间我用的是控制台。

Did not like the experience at all.

一点也不喜欢这种经历。

#8


1  

what about multi modules project ?, m2eclipse plugin is ineffective. Especially if we use war module.

那么多模块项目呢? m2eclipse插件是无效的。特别是如果我们使用战争模块。

#9


0  

I am using m2eclipse ... thats the best and well documented too...

我正在使用m2eclipse…这是最好的,也是有充分证据证明的……

#1


42  

I choose m2eclipse since it is stable and have all that I need. Especially ability to resolve dependencies inside workspace.

我选择m2eclipse,因为它是稳定的,并且拥有我所需要的一切。特别是解决工作空间内依赖关系的能力。

I tried the other one some time ago and didn't like it. It was to buggy so I gave up quickly.

我前些时候试过另一种,但不喜欢。因为车坏了,所以我很快就放弃了。

#2


12  

The side by side comparison is moved to http://web.archive.org/web/20150526230611/http://docs.codehaus.org/display/MAVENUSER/Eclipse+Integration

并行比较转移到http://web.archive.org/web/20150526230611/http:// docs.codehaus.org/display/mavenuser/eclipse +Integration

#3


4  

For me as a complete Maven-newbie the m2eclipse plugin worked quite well. We manage around 15 projects with it. The nested Maven projects will be flat in Eclipse (as it does not support nested projects), but all of them were automatically set up the right way, so everything works fine. Up to now I never needed to manually invoke a Maven command, for me using the preconfigured "run as" launch configurations did their job quite well.

对我来说,作为一个完整的maven新手,m2eclipse插件运行得非常好。我们用它管理大约15个项目。嵌套的Maven项目将在Eclipse中是扁平的(因为它不支持嵌套项目),但是它们都是自动设置为正确的方式,所以一切都很正常。到目前为止,我还不需要手动调用Maven命令,对于我来说,使用预先配置的“作为启动”的启动配置完成了它们的工作。

For me the quality of m2eclipse can be judged by this simple example: If you run Eclipse on a JRE instead of JDK, m2eclipse shows a warning that some of its features rely on a JDK. Nevertheless it still works on the JRE. And the warning dialog has hyperlinks to the Eclipse documentation about command line arguments and to the "Installed JREs" preferences, so you can easily fix the wrong Java VM.

对我来说,m2eclipse的质量可以通过这个简单的示例来判断:如果您在JRE上而不是在JDK上运行Eclipse,那么m2eclipse显示了一个警告,它的一些特性依赖于JDK。尽管如此,它仍然适用于JRE。警告对话框中有关于命令行参数的Eclipse文档和“已安装的JREs”首选项的超链接,因此您可以很容易地修复错误的Java VM。

That said I cannot speak for or against IAM, as I never used it due to the good m2eclipse experience.

也就是说,我不能支持或反对我的am,因为我从来没有使用过它,因为我有很好的m2eclipse经验。

#4


3  

Side by side comparison of Maven plugins for Eclipse. It haven't been updated to recently added features. For example, see New and Noteworthy page for m2eclipse.

并排比较Eclipse的Maven插件。它还没有更新到最近添加的特性。例如,请参阅m2eclipse的新和值得注意的页面。

#5


3  

m2eclipse is ok (a lot more reliable than it was 1-2 years ago), but m2eclipse extras (which you need for WTP integration - WTP gives you the ability to run a server in the IDE) is a different matter - and not supported by Codehaus. Several times a week you will find that it hasn't copied resources to the appserver, or you get a NPE, or some other problem.

m2eclipse还可以(比1-2年前要可靠得多),但是m2eclipse附加功能(WTP集成所需的功能——WTP使您能够在IDE中运行服务器)则是另一回事——并没有Codehaus的支持。每周有几次您会发现它没有将资源复制到appserver,或者得到NPE,或者其他问题。

I have not used Eclipse IAM but I discovered this page whilst looking for alternatives to m2e because of these WTP issues. Intellij is calling, I think.

我还没有使用Eclipse IAM,但是由于WTP问题,我在寻找m2e的替代品时发现了这个页面。我想,Intellij正在打电话。

#6


2  

m2eclipse is fine for the small projects. But it has a very poor performance in huge enterprise projects. Even a smallest change in POMs would cause this plugin to "update dependencies" for hours...

对于小型项目来说,m2eclipse是合适的。但它在大型企业项目中表现很差。即使是最小的改变,POMs也会导致这个插件“更新依赖”数小时……

Since we switched to IAM, the problem's almost gone. Even if it takes a while for it to cope with the POM changes, it is still like minutes compared to hours (m2e).

自从我们改用IAM后,问题几乎消失了。即使它需要一段时间来应对POM的变化,它仍然像是分钟而不是小时(m2e)。

Choose:

选择:

  • m2e - if your project is small and you like fancy features like dependency trees
  • m2e—如果您的项目很小,并且您喜欢依赖树这样的奇特特性
  • iam - if you need performance
  • 如果你需要性能

#7


1  

I used m2eclipse. But I did never manage to launch the tests or the whole project from within eclipse (the project had nested folders for various sub-modules). When I used it they said support for that was experimental. The most I could get was syntax-checking and such. For the rest I used the console.

我用m2eclipse。但是我从未成功地从eclipse中启动测试或整个项目(该项目为各种子模块嵌套了文件夹)。当我使用它的时候,他们说支持它是实验性的。我能得到的最多的就是语法检查等等。剩下的时间我用的是控制台。

Did not like the experience at all.

一点也不喜欢这种经历。

#8


1  

what about multi modules project ?, m2eclipse plugin is ineffective. Especially if we use war module.

那么多模块项目呢? m2eclipse插件是无效的。特别是如果我们使用战争模块。

#9


0  

I am using m2eclipse ... thats the best and well documented too...

我正在使用m2eclipse…这是最好的,也是有充分证据证明的……