Creating Dysoweb applications is the same thing as creating an OSGi bundle since dysoweb applications are OSGi bundles. (see Dysoweb Application Structure)

The OSGi community has created numerous tools to create OSGi bundles and continues to improve those tools and add new ones. Stay tuned, since this is an evolving subject (BTW you may contribute new tools as well)

You have basically 2 options (Please feel free to edit this page if you know other and better solutions): Maven or Eclipse PDE

I don't think one is better than the other at this point. Eclipse is good for testing something and prototyping, maven is better for a solid released solution. (But that's my opinion only). I would probably recommand that one starts with Eclipse for trial purposes and evaluates maven when things get clearer.

It is also my opinion that the maven route could be improved to better handle the bundle generation in "debug" mode.

The maven route

Creating a bundle with maven is done with the maven bundle plugin created by Peter Kriens.

Pro:

  • Maven handles well the build/release process, and fits well into organisations that are already committed to maven
  • Defines a "standard" directory template
  • Good at bundle versionning

Cons:

  • More complicated to put in place
  • Create a jar by default, and therefore more difficult to handle a fast code/compile/test/debug cycle
  • Need to locate all external artifacts (jar) on ibiblio or deploy them to a local maven repo

To create a dysoweb application with maven, see: Create Dysoweb application with Maven

The Eclipse PDE route

The PDE in Eclipse (Plugin Development Environment) was initially developped to help developpers create plugins for Eclipse. Since Eclipse is based on OSGi (Equinox) and plugins are OSGi bundles, you can use the PDE to create Dysoweb applications.

Pro:

  • Quick and Easy to create a DysoWeb application with the use of templates
  • Editors to edit the manifest
  • The project layout (directory structure) is closed to what gets jared in the bundle.
  • Faster Compile/Test/Debug cycle

Cons

  • Build for release process more complicated to put in place
  • Version must be handled manually
  • Package imports must be defined manually

To create a dysoweb application with eclipse PDE, see Create Dysoweb application with Eclipse PDE

Tags:
Created by Pierre Dubois on 2011/10/03 07:10
     
This wiki is licensed under a Creative Commons 2.0 license
XWiki Enterprise 9.11.5 - Documentation