Maven archetype for Eclipse RCP - maven

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

Related

Build and package a maven plugin within another project

I am trying to build a Maven plugin using Eclipse. I need it to be in a project called Utilities (contains some other utility tools), i.e. I do not want the plugin to be an Eclipse project all by itself.
The <packaging> tag for Utilities project in its POM is jar, while technically a maven plugin needs to be packaged as a maven-plugin. Is there any way to get around this? Or must I build the Maven plugin as a separate project?

How to import Multi maven project which is built in ant in eclipse?

An old large scaled project which contains four modules of maven one being parent and other three as its child. all this structure is built on ant.
It uses Spring framework, hibernate and FTL in Gui
how to get it running on Eclipse ?
Install Eclipse plugin M2Eclipse
import under Eclipse the root project with the wizard
Maven > Existing Maven Project
convert it as a Maven project
import the modules as Maven projects

eclipse do not show the setting.xml for maven - i have downloaded luna full package

I am trying to set up maven in new eclipse - i have downloaded eclipse luna full package from eclipse site. but the settings xml for maven needs to be defined .
For the very first time - there are two ways to do this
1- Using Eclipse - embedded settings of maven
2- Using External Maven -
You can follow steps at - Maven in Eclipse: step by step installation
Then you need to create a simple maven project and clean-install it . It wil download all the basic required jars and all the basic plugins required for clean-compile-install operations.
Then you can start creating maven projects using maven archetypes

Eclipse Plugin Development: Convert plugin project to maven project

I have developed an Eclipse plugin project. Now I need to convert it to a Maven Project so that the dependencies etc can be handled using pom.xml.
Is there a way to convert the plugin project to a Maven project?
Right click on your project -> Configure -> Convert to Maven Project
you need eclipse m2e to do this
btw. if you dont know: if you want to use maven with eclipse plugins, you will need tycho too. see eclipse tycho

I have an Eclipse project which is not using Maven, can I start using Maven in a project?

I installed m2eclipse plugin. I want to create pom.xml in my project which is not using maven.
İn this site I found information below about how can I do it but it doesn't work for me.
Create a Maven POM File
If you already have an Eclipse project which is not using Maven, you
can start using Maven in a project by creating a new Maven POM file.
m2eclipse provides a wizard to easily create a new POM file inside an
existing project. To launch this wizard, select File → New → Other...,
type in "maven" in the filter field, and select Maven POM File. This
POM creation wizard is shown in Figure 5, “Creating a New POM”:
Please help me to solve this problem
If you use eclipse indigo then simply right-click the project, select Configure > Convert to maven project. If you are not using eclipse indigo you can do something like right-click project > Maven > Enable dependency management (if I remember correctly)

Resources