Skip to content

Latest commit

 

History

History
57 lines (38 loc) · 2.56 KB

README.md

File metadata and controls

57 lines (38 loc) · 2.56 KB

osgi-best-practices

Java CI

OSGi application with an angular UI, REST Service and OSGi service. The design follows current best practices for OSGi R7 applications.

Slides for eclipsecon 2109 talk "Testing OSGi applications"

Modules

  • parent - Defines common dependencies and the build of OSGi bundles
  • backend - Tasklist api, OSGi service impl and REST service. In a full blown application you might want several bundles here
  • halbrowser - Repackaged halbrowser for OSGi
  • ui - Static Angular UI that uses the REST backend
  • app - Defines the index and application assembly using bndrun

Build

mvn clean install

Run

cd app; java -jar target/app.jar

Alternatively run in Apache Karaf

Download and run Apache Karaf 4.2.6

feature:repo-add mvn:org.apache.aries.jax.rs/org.apache.aries.jax.rs.features/1.0.5/xml
feature:install aries-jax-rs-whiteboard aries-jax-rs-whiteboard-jackson war
install -s mvn:net.lr.osgibp/net.lr.osgibp.backend
install -s mvn:net.lr.osgibp/net.lr.osgibp.ui/1.0.0-SNAPSHOT

Test

Resources

Testing