How to create a Spring-DM bundle project using Maven (and Eclipse...)

From MediaWiki

Jump to: navigation, search
Image:RichardGomes-small.png

Richard Gomes founded JQuantLib in Sep/07. He is Brazilian and settled in London since Aug/06.
He has several years of experience in IT and experience with full software life-cycle, working as developer, architect, production support analyst. Read more...

Richard is available for immediate assignment as consultant specialized on Java technologies and open source tools.


This is a work in progress. Use at your own risk. :(


Overview

[http:/www.jquantlib.org/ JQuantLib] team is currently evaluating how OSGi must be used in order to make JQuantLib a library which applies the best practices on high availability on top of an OSGi container. This article started to explore how Spring DM can be used but we started other explorations.


Procedure

This page is based on article with same name from SpringFramework

mvn archetype:create \
    -DarchetypeGroupId=org.springframework.osgi \
    -DarchetypeArtifactId=spring-osgi-bundle-archetype \
    -DarchetypeVersion=1.1.2 \
    -DgroupId=org.jquantlib \
    -DartifactId=contrib.osgi.example \
    -Dversion=0.1

cd org.jquantlib.contrib.osgi.example

mvn clean package

mvn org.apache.felix:maven-bundle-plugin:manifest

mvn eclipse:configure-workspace -Declipse.workspace=org.jquantlib.contrib.osgi.example

mvn eclipse:eclipse


See also


RichardGomes 01:32, 3 November 2008 (UTC)