- Download Eclipse IDE for Java Developers.
- Open Eclipse with this directory as workspace
- Install Bndtools via the eclipse marketplace
- go to
File > Open Projects From File System...
- in
Import Source:
browse to this directory - Press finish and enjoy a normally error-free workspace
- Make sure top open the
Bndtools Perspective
in the top right of the editor
- open
org.example.webserver
- open the file
run.bndrun
, this should open a special.bndrun
editor - go to the
run
tab in the bottom left - press
Run OSGi
in the top right
now the endpoint http://localhost:8080/api/hello should be working
this endpoint also takes a query parameter name
: http://localhost:8080/api/hello?name=jeff
This repository represents a template workspace for bndtools, it is the easiest way to get started with OSGi enRoute. The workspace is useful in an IDE (bndtools or Intellij) and has support for continuous integration with gradle. If you want to get started with enRoute, then follow the steps in the quick-start guide.