Sometimes it is necessary to add a new bundle to odysseus, e.g. for new functionality that is not covered yet or does not fit into other bundles.

Path

To allow automatic building of Odysseus products, we created the following directory structure.

  • application: Contains everything not directly related to Odysseus, but uses some elements of Odysseus (e.g. nexmark or other generators)
  • client: Everythings that should only be used in a odysseus client. No dependencies to the other directories but common are allowed.
  • common: This dir contains common things. No dependencies to other directory is allowed
  • monolithic: This dir contains elements for the monolithic Odysseus, i.e. can only be used if client and server are in one product.
  • server: Contains things that should be used in the Odysseus server. A dependency is only allowed to common.
  • test: Contains things for testings, typically in a monolithic product

Remark: Under common and server are directories called core: No dependencies to other bundles outside are allowed. The core bundles are the base bundles and are not allowed to get new dependencies (there may be  exceptions, but typically this is true. Especially, there should be no dependencies to other Odysseus bundles, because it would lead to cyclic dependencies)

A new Bundle

A new bundle should be placed somewhere under the paths described aboved. If a totally new kind of functionality is added, create a new sub dir, else add to an existing one.

In Eclipse call: File/New/Plug-in Project

If the bundle should contain a logical operator or a transformation rule, the bundle must start with de.uniol.inf.is.odysseus

Do not use the default location as this will be the workspace root. 

Use as target platform: OSGi framwork: standard

Adding Dependencies

Most bundles will require Odysseus core components. These dependencies can be added in the MANIFEST.MF file

Add de.uniol.inf.is.odysseus.core and for server components de.uniol.inf.is.odysseus.core.server to the list to required bundles.

Although, it is best OSGi practise to add packages and not plug-ins, in Odysseus there are some restrictions that could lead to problems, when using package import. So it is better to use the plugin import


Feature

This new bundle will not be part of Odysseus until it is added to a feature. First look, if this bundle can be added to an existing feature. In this case open the feature in Eclipse and add the bundle. Here e.g. the key value feature:



and add the plug-in under Plug-ins


If its a new feature, create a new feature project in Odysseus:File/New/Feature Project

Finally, a new feature must be added to an existing product (See also Adding features to products)

or a new project must be created:

For an new product, you could copy one existing. Important: You must change the product id!



Labels (0)

  • No labels

Comments  (0)

Attachments  (10)

Add Attachment
  File Modified
PNG File image2014-6-17 8:43:35.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:43:45.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:44:48.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:49:11.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:49:21.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:50:33.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 8:56:5.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 9:0:38.png Jun 17, 2014 by Marco Grawunder
PNG File image2014-6-17 9:9:4.png Jun 17, 2014 by Marco Grawunder
PNG File image2017-9-29_8-49-46.png Sep 29, 2017 by Marco Grawunder