views:

32

answers:

2

How to create new Eclipse RCP project using maven2 (preferably m2eclipse)?

I read that there's plug-in for Maven that have idea about Eclipse. (Maven Eclipse Plugin) And then it looks like I need to find some Maven Archetype to create Eclipse RCP project, but I could not. At this point I am in doubt if I go right way.

I just want to use maven dependencies resolution and other features in my RCP application development.

P.S. I found that it is possible to "Enable Dependency Management" via m2eclipse. The other option is to make 2 project: maven project and Eclipse RCP project that will reference the first on classpath. What is the smart way?

P.P.S There's also option to use Eclipse dependency resolution mentioned here

Convert your library project to a plug-in project (right-click -> Configure -> Convert to Plug-in Project) and add it to the dependencies of your plug-in project (manifest editor, Dependencies tab).

+1  A: 

Maybe Tycho (http://tycho.sonatype.org/) will help you. Currently, it seems to be a little bit alpha, but after releasing Maven 3.0, Jason van Zyl promised to spend more time on Tycho (http://www.sonatype.com/people/2010/10/maven-3-0-has-landed/).

Steve
+2  A: 

Pending all the maven3 magic highlighted in Steve's answer, you do have this Maven RCP build recipee, based on the pde-maven-plugin (as presented in the Building Eclipse RCP and RCP-based Applications page)

VonC