How to create new Eclipse RCP project using Maven?

蹲街弑〆低调 提交于 2020-01-01 00:45:17

问题


How to create new Eclipse RCP project using Maven (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:


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/).




回答2:


Pending all the maven3 magic highlighted in Steve's answer, you do have this Maven RCP build recipe, based on the pde-maven-plugin (as presented in the Eclipse Plugin Development Environment support page)



来源:https://stackoverflow.com/questions/4029869/how-to-create-new-eclipse-rcp-project-using-maven

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