質問

Is there maven archetype (template) for Eclipse RCP / plugin ?

That is, I want something like mvn eclipse-rcp create (run from comand line) to get Eclipse RCP project.

See also http://maven.apache.org/archetype/maven-archetype-plugin/

Related How to create new Eclipse RCP project using Maven?

役に立ちましたか?

解決

I would suggest using Maven Tycho to build the RCP application. It is a matured project which is utilized by the Eclipse Foundation as part of its own build infrastructure.

You can take a look at the following sample for cross platform Eclipse RCP Application building using Maven/Tycho-

https://github.com/eclipse/tycho-demo/tree/master/itp04-rcp

UPDATE -

There is a maven archetype for Eclipse Tycho plugin/feature build but it does not support RCP specifically.

You can take a look at it here -

https://github.com/open-archetypes/tycho-eclipse-plugin-archetype

It will build your project structure as follows -

__artifactId__    : parent pom project
 |
 |---__artifactId__.core   : eclipse-plugin 
 |
 |---__artifactId__.feature: eclipse-feature 
 |
 |---__artifactId__.test   : eclipse-test-plugin (Fragment project)
 |
 |---__artifactId__.site : eclipse-repository

This leaves out building the RCP app. For that you will have to add a pom.xml file where your .product file lies. Tycho will pick up settings from this .product file.

At the very lease your pom.xml must have the following -

https://github.com/eclipse/tycho-demo/blob/master/itp04-rcp/eclipse-repository/pom.xml

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top