简体   繁体   English

使用Maven构建Eclipse插件 - 最新观点

[英]Using Maven to build an Eclipse Plugin - latest opinions

I am building a plugin for Eclipse - but as we use Maven as a standard build platform I would like to be able to build the plugin using Maven. 我正在为Eclipse构建一个插件 - 但是当我们使用Maven作为标准构建平台时,我希望能够使用Maven构建插件。

I have found a previous question about using Maven with Eclipse Plugins - but as it is a year old I thought it was worthwhile collecting some new answers: 我之前发现了一个关于在Eclipse插件中使用Maven的问题 - 但是因为它已经有一年了,我认为值得收集一些新的答案:

Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration? 目前是否可以通过Maven构建Eclipse插件并具有良好的IDE集成?

It seems that Tycho has not been driven forward much in the last year - but has anything else been created that fulfils this need or is there an easier way? 看来Tycho在去年没有被大力推进 - 但是还有其他任何东西可以满足这种需求,还是有更简单的方法?

Does anyone recommend still the Maven PDE plugin? 有人推荐Maven PDE插件吗? Is this a cumbersome solution as it is just a wrapper for ANT scripts? 这是一个麻烦的解决方案,因为它只是ANT脚本的包装器吗?

I'm on the Tycho mailing list and I see plenty of feedback that suggests that people are successfully building plug-ins using Maven. 我在Tycho邮件列表上,我看到很多反馈表明人们正在使用Maven成功构建插件。 My current project isn't doing OSGi development, so I can't vouch from personal experience with the latest version of Tycho. 我目前的项目没有进行OSGi开发,所以我不能保证使用最新版本的Tycho的个人经验。 It's also worth pointing out that Tycho currently supports (to the best of my knowledge) a manifest-first approach to building plug-ins (as apposed to POM-first) - this might be a factor in deciding if Maven/Tycho fits your project. 值得指出的是,Tycho目前支持(据我所知)构建插件的清单优先方法(与POM优先一样) - 这可能是决定Maven / Tycho是否适合您的项目的一个因素。

It seems that Tycho has not been driven forward much in the last year - but has anything else been created that fulfils this need or is there an easier way? 看来Tycho在去年没有被大力推进 - 但是还有其他任何东西可以满足这种需求,还是有更简单的方法?

The project is definitely active (have a look at the git repository ), regardless of the updates of its website and AFAIK Sonatype is using it (successfully) for m2eclipse . 该项目肯定是活跃的(看看git存储库 ),无论其网站的更新如何,AFAIK Sonatype正在为m2eclipse使用它(成功)。

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

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