如何使用Maven创建新的Eclipse RCP项目? [英] How to create new Eclipse RCP project using Maven?

查看:633
本文介绍了如何使用Maven创建新的Eclipse RCP项目?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Maven创建新的Eclipse RCP项目( preferred m2eclipse )?

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

我看到有一些有关Eclipse的想法的Maven插件。
Maven Eclipse插件)然后它看起来像我需要找到一些Maven Archetype来创建Eclipse RCP项目,但是我不能。在这一点上我有疑问,如果我正确的方式。

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.

我只想在我的RCP应用程序开发中使用maven依赖关系解析和其他功能。

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

我发现可以通过m2eclipse启用依赖关系管理。
另一个选项是使2项目:maven项目和Eclipse RCP项目,它将引用第一个类路径。什么是聪明的方式?

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?

PPS还有选择使用Eclipse依赖性解析提到的 here

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


推荐答案

也许Tycho( http://tycho.sonatype.org/ )将帮助您。目前,它似乎是一点点阿尔法,但在释放Maven 3.0之后,Jason van Zyl答应在Tycho上花费更多的时间( http://www.sonatype.com/people/2010/10/maven-3-0-has-landed/ )。

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

这篇关于如何使用Maven创建新的Eclipse RCP项目?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆