Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm currently evaluating maven to improve our build process. The building and creating of normal jar files works so far, although I'm not entirely happy with the Maven IDE.

I'm now at that point, where all libs I need for our project are built, and I'm moving on to the Eclipse RCP projects. And now I'm not sure how to go on.

There are some plugins I need to build first, before moving on to the actual RCP part. Therefore I have actually 3 problems.

I want to build those plugins, the only real solution for that seems to be the maven-bundle-plugin: http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html

But, For nice IDE integration I also need the appropriate files (plugin.xml, build.properties, etc ...) which should be generated automatically.

For building the RCP parts, it seems so far the only solution is only the pde-maven-plugin http://mojo.codehaus.org/pde-maven-plugin/ which, as far as I can tell, uses ant-pde. This is stupid, isn't it?

The only other thing I could found was tycho (http://www.sonatype.com/people/2008/11/building-eclipse-plugins-with-maven-tycho/) , but this is till in a very early stage.

and again, a nice Eclipse integration is necessary. I really, really, really don't want to specify dependencies twice.

So How do you build your Eclipse RCP projects with maven?

Update

For now, it seems that there is no such solution available. Tycho looks very promising, but I wasted 2 days and didn't get it to run (the current version at this point). Maybe it will be ready in half a year or so.

like image 959
Mauli Avatar asked Feb 13 '09 10:02

Mauli


People also ask

Which Eclipse IDE is best for Maven project?

M2Eclipse provides tight integration for Apache Maven into the Eclipse IDE with the following features: Launching Maven builds from within Eclipse. Dependency management for Eclipse build path based on Maven's pom. xml.

Does Eclipse work with Maven?

Eclipse is one of the most popular IDEs for Java and Android application development. It provides an excellent plugin, M2Eclipse, which integrates Maven and Eclipse. M2Eclipse automatically downloads required dependencies from remote Maven repositories.

Do we need to install Maven plugin in Eclipse?

NOTES:Eclipse Kepler (4.3) and newer versions already have Maven integration so you don't need to install the plug-in for this version of Eclipse.


2 Answers

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

like image 70
Philip Helger Avatar answered Nov 11 '22 22:11

Philip Helger


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

like image 44
cadrian Avatar answered Nov 11 '22 21:11

cadrian