New tutorial demonstrates best practices for building OSGi applications with Maven
SAN RAMON, Calif. — October 20, 2016 — With the launch of OSGiTM enRoute 2.0, developers can now access OSGi enRoute and bnd artifacts in Maven Central. These artifacts can now be used in any Maven project simply by including their coordinates, making it easier to use the OSGi enRoute quick-start environment in new and existing Maven projects.
OSGi enRoute is an OSGi Release 6 development environment that includes a complete tool chain based on Eclipse, Bndtools and either Gradle or Maven. OSGi enRoute also provides tutorials, examples, and application notes at http://enroute.osgi.org. With OSGi enRoute, a developer can make a single-page web OSGi application in just minutes. From there, it is easy to extend with the extensive number of OSGi open source and commercials components that exist.
A new tutorial using only Maven and a simple text editor presents the best practices of building OSGi applications with Maven. This includes the progression from a simple API to multiple providers of that API, creating an OSGi runtime, a shell command, integration testing, exporting to an executable JAR, and setup in a continuous integration server.
OSGi enRoute 2.0 is based on the Bndtools 3.3.0 release, and includes the following new features:
- Full integration with Maven using a repository based on a Maven Project Object Model (POM). This eases interaction when both Maven and Gradle/bnd builds are used.
- An Eclipse p2 repository
- Support for augmenting repositorieso SincenotallartifactsprovidethecorrectOSGimetadata,OSGienRoute2.0 enables developers to add a resource that provides metadata for other resources in the repository. This makes it possible to “fix up” resources.
- Enhanced web server support and REST support with Open API 3.0 draft
- More parallel downloads and processing
- Better download progress information
- Improved UI responsiveness
- A Maven plugin for exporting
- A Maven plugin for integration testing
- Bug fixes and improvements“It’s exciting to see our OSGi enRoute project add full Maven integration. This makes our quick- start environment accessible to the community of developers who depend on Maven,” said Dan Bandera, president of the OSGi Alliance. “We initiated this project to deliver OSGi benefits easier, without comprise, while fully supporting OSGi modularity. We are proud of what has been achieved. We are excited to see how the OSGi enRoute community, and developers at large, take advantage of this 2.0 release and evolve it further through contributions.”
Questions and discussions about OSGi enRoute should be made on [email protected] Visit http://enroute.osgi.org for more information on OSGi enRoute and www.osgi.org to find out more about OSGi technology in general.
About OSGi Alliance
OSGi provides a vendor-independent, standards-based approach to modularizing Java software applications and infrastructure. Its proven services model enables app and infrastructure modules to communicate locally and distributed across the network, providing a coherent architecture for IoT services. OSGi specifications are tested and ready now to provide highly scalable remote management and effective maintenance over the long term.
A wide range of open source projects and commercial products use OSGi technology, which is applicable to Cloud, IoT and enterprise markets. The OSGi Alliance is a global non-profit technology corporation. Visit www.osgi.org, follow us on Twitter @OSGiAlliance, join our LinkedIn Group, or contact us directly at [email protected]
OSGi is a trademark or registered trademark of the OSGi Alliance in the United States, other countries, or both. Java and all Java based trademarks and logos are trademarks of the Oracle Corporation in the United States, other countries, or both. All other product or service names are the property of their respective owners.