Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add OSGi bundle headers to released jar file #17

Closed
fh-ms opened this issue Sep 25, 2019 · 9 comments
Closed

Add OSGi bundle headers to released jar file #17

fh-ms opened this issue Sep 25, 2019 · 9 comments
Assignees

Comments

@fh-ms
Copy link
Contributor

fh-ms commented Sep 25, 2019

In order to use MicroStream in OSGi environments it is necessary to ship the OSGi bundle headers within our jar files. This can be done with a maven plugin in the package phase of the build.

https://blog.osoco.de/2016/05/building-osgi-bundles-with-apache-maven/

@fh-ms fh-ms self-assigned this Sep 25, 2019
@fh-ms
Copy link
Contributor Author

fh-ms commented Oct 2, 2019

Was a misunderstanding of the problem. Our modules don't have to be OSGi bundles itself. The issue is how the OSGi bundles import and export packages, so the bundle using MicroStream to persist stuff, must have access to the other bundles' content. So nothing we can do here, but OSGi projects must adopt to circumstances.

@fh-ms fh-ms closed this as completed Oct 2, 2019
@fh-ms fh-ms reopened this Jul 21, 2020
@fh-ms
Copy link
Contributor Author

fh-ms commented Jul 21, 2020

Issue came up again at JUG Augsburg today. In order to use external libraries in OSGi environments they need to add the header information by themselves. If we could include the header generation in our build, our modules could be used out of the box in OSGi environments.
Can be easily done with BND tools Maven plugin:
https://github.com/bndtools/bnd/tree/master/maven/bnd-maven-plugin

@fh-ms fh-ms assigned zdenek-jonas and unassigned fh-ms Jul 22, 2020
@hg-ms
Copy link
Contributor

hg-ms commented Jul 31, 2020

Have a look at our forum https://forum.microstream.one/?qa=104/osgi-metadata

Mr. Thomas Driessen provided a maven configuration.

@fh-ms
Copy link
Contributor Author

fh-ms commented Nov 17, 2020

Additionally to that we should provide a p2 deployment on our Nexus server. There should be a Maven plugin for that.

@fh-ms fh-ms assigned fh-ms and zdenek-jonas and unassigned zdenek-jonas Nov 17, 2020
@fh-ms
Copy link
Contributor Author

fh-ms commented Nov 19, 2020

Added script for OSGi headers to default build.
In ./p2 the repository can be created with mvn clean validate p2:site

@zdenek-jonas
Copy link
Contributor

Ok, repo is ready. URL: https://repo.microstream.one/service/rest/repository/browse/update-site/
to download for example: https://repo.microstream.one/repository/update-site/04.00.00-MS-
P2/

But the installation into eclipse creates another issue and eclipse crashed.
https://github.com/microstream-one/microstream-private/issues/446

@zdenek-jonas
Copy link
Contributor

image

@zdenek-jonas
Copy link
Contributor

image
Unsigned software.

@zdenek-jonas
Copy link
Contributor

fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants