Optsicom Development with Maven and Eclipse

I've been able to configure Maven for Optsicom RES. It is quite clear and simple to build Eclipse artifacts like plugins, features and p2 repositories with Maven. If you want to see the steps involved have a look at the Optsicom RES development page.

I think it's time to go on with Maven and apply it our projects in the Optsicom Optimization Suite. We may need to change some things to make this work. Hopefully, some parts of Optsicom Suite are OSGi artifacts (like the framework), and it is easy to set the Maven descriptors (pom.xml files) that convey the necessary information for Maven to compile, create jars, plugins and repositories. The following command, invoked from the command line, traverses the projects creating the necessary pom's (if they are OSGi projects):

mvn org.sonatype.tycho:maven-tycho-plugin:generate-poms -DgroupId=es.optsicom.framework -Dtycho.targetPlatform=/home/patxi/Documents/helios/eclipse

Using this approach, it's easy to adapt our projects to Maven. However, we need first to further investigate the integration of Maven folder structure and pom files with Eclipse, which is the environment we use for development. In this page I will describe this process as I learn it.

This tutorial is divided into the following sections:

References

Information on this topic is sparse, and it is difficult to find something that targets the same scenario you are trying to solve. For instance, there seems to be good tutorials for RCP applications that uses Maven as their build system, but I couldn't found a complete tutorial on plugins and features, p2 repository generation and that also included releasing of projects.

Even so, there are really good pages out there that one must have a look at when facing this task. You are not alone. Many thanks to all these people. If I could accomplish this task it is only by standing on the shoulders of giants. Don't give up. It'll worth the effort.