OSGi development bridge based on Bnd 2.3 and Tycho 0.25.
There is a sample project. Please, overview test
file which contains interactive example in Scripted format.
What is it? SBT Plugin for solid integration OSGi infrastructure with your favorite IDE.
Plugin provides such abilities as:
- resolving OSGi dependencies and dependencies with source code at Eclipse P2 update site
- resolving OSGi dependencies via OSGi R5 repositories
- generating bundle manifest
Resolved bundles are added to project to 'library-dependencies' settings key. Resolved bundles and their source code (if any) may be fetched with sbt-dependency-manager or may be processed with your favorite tool that uses SBT dependency information (for example, SBT command deliver-local
).
See SBT OSGi Manager documentation.
Required Java 8 or higher
Use local test as example if you wish to store OSGi dependencies on your local storage
Use remote test as example if you wish to use OSGi dependencies directly from remote resource
Use subproject test as example with nested projects
Checkout plugin and run sbt-0.13 'set scriptedLaunchOpts := Seq("-Xms384m", "-Xmx384m", "-XX:MaxPermSize=128m")' scripted
. Compare tests output and your project debug messages. You may look for tests output at Travis (click on build status)
osgiResolve
and osgiResolveLocal
are input tasks. You must run it from SBT console or from SBT hooks like onLoad before project tasks.
Example session:
sbt> show osgi:libraryDependencies
... empty list ...
sbt> osgiResolve
... resolution process ...
sbt> show osgi:libraryDependencies
... list with OSGi dependencies ...
Use osgiShow
task.
- Alexey Aksenov
SBT OSGi Manager project is licensed to you under the terms of the Apache License, version 2.0, a copy of which has been included in the LICENSE file. Please check the individual source files for details.
Copyright © 2013-2016 Alexey B. Aksenov/Ezh. All rights reserved.