Is it currently possible to build Eclipse Plugins by Maven AND have nice IDE Integration?

☆樱花仙子☆ 提交于 2019-11-30 00:27:56

No there is no such tool. Tycho is also the only approach I know of.

I use m2eclipse and it fits well my needs. You specify your dependencies in the pom.xml and they are automatically taken into account in Eclipse's build path.

Caveat: I cannot tell anything about RCP (never built anything for that platform).

Best regards,

Cyril

Are you dead set on using maven to build your RCP apps? I ask this because, from my experience using maven to build anything more than trivial RCP apps can be quite a pain. When I started working on RCP applications I initially investigated using maven as a build solution, but found out that the support for eclipse builds within maven was very basic at the time. Also, some co-workers of mine are using maven for another RCP based project in our company, and while the support for eclipse has gotten better, they had to jump through some hoops to get it to work to their liking. So, my opinion is that for now, stick to using the ant based pde build for your RCP applications.

Nowadays Tycho allows resolving dependencies based on the built bundles' manifests (required bundles, imported packages, etc.).

Moreover, Tycho can be configured to use a target platform for the build. This allows using the same target platform for maven and pde builds.

Since v0.24.0, Tycho can even build POM-less plug-ins and features, avoiding the duplication of version and artifactId metadata.

In light of the above, and considering that even the Eclipse Platform is built using it for a few years now, Maven Tycho is currently the best way to build an RCP headlessly.

In our project we have separated the target platform and the application plugins. In short: we build the target platform with Maven, while the application plugins are built with PDE.

I used Mavenide for a while, it was just ok. Not sure on how it is today though.

Tycho does what you need. Now in 2012, it is mature and usable set of maven plugins. I can only recommend it.

The quality of the documentation has obviously not changed very much since 2009. It may be difficult to get Tycho running. We managed to understand Tycho and we've been successfully using it for building a considerably large Eclipse RCP application for more than a year and a half. We adopted a manifest-first approach, where all the plugin(project) dependencies are defined in MANIFEST.MF. The final product of our build is an executable application and also a p2 site for easy updates. All done by maven build.

If u r building an Eclipse Plugin or application (RCP) Maven Tycho is the recommended way to build it.

It's pretty intelligent in resolving osgi dependencies. U can refer to my tutorials on Maven Tycho Tutorials

Maven Tycho requires m2eclipse and Tycho configurator installation.

And archetype should be eclipse-plugin or eclipse-feature or eclipse-repository

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!