My favorites | Sign in
Project Home Downloads Wiki Issues Source
Search
for
BuildingExampleApplications  

Featured
Updated Dec 22, 2008 by roman.ro...@gmail.com

Introduction

The example applications in ModuleFusion are build with the Maven project management and deployment tool. Maven can be downloaded from http://maven.apache.org/download.html.

To get ModuleFusion examples' sources and build files download and extract "modulefusion-examples-version.zip". The archive contains 5 example application (org.modulefusion.example.guice.simple/, org.modulefusion.example.jpa.personclient/, org.modulefusion.example.jpa.personprovider/, org.modulefusion.example.servlet.helloworld/ and org.modulefusion.example.wicket.crud/).

The root directory of the archive contains a "pom.xml" file which can be used for building all applications at once. This file is also the "parent" for the other POM files and contains common build settings shared between all applications.

Besides build and source files, the archive also contains the Peaberry v1.0 library located in the root directory.

Peaberry Installation

Project dependencies for the example applications are defined in the build files and most of the Java libraries needed to build the applications will be automatically downloaded and stored by Maven in its local repository.

One exception is the Peaberry library. Currently there is no online Maven repository containing the newer version 1.0 of Peaberry used by the ModuleFusion examples. That's why peaberry must be installed manually in the local repository. This can be done by executing the following Maven command in the directory containing peaberry jar file:

mvn install:install-file -DgroupId=org.ops4j -DartifactId=peaberry -Dversion=1.0-beta -Dpackaging=jar -Dfile=peaberry-1.0-beta.jar

Building ModuleFusion Examples

To build all example bundles at once execute the Maven "mvn install" command in the folder where you've extracted the "modulefusion-examples-version.zip" archive.

Individual applications can be build by executing the same command in the corresponding application directory. For example to only build the Guice Example application you can execute the "mvn install" command in the org.modulefusion.example.guice.simple/ directory.

When building all applications at once, all bundles will be available in the "assembly/target/assembly-version-modulefusion-examples.dir/" directory. Copy the content into ModuleFusion's load directory to install all bundles.

Comment by mail2aru...@gmail.com, Sep 26, 2008

Hi,

I'm a newbie to OSGi. It would be better, if there is step-by-step guide to builde a Osgi-JPA based application in Eclipse.

Thanks, Arun


Sign in to add a comment
Powered by Google Project Hosting