Native OSGi packages required by the OSGi application cannot be distributed

I want to use patented, non-OSGi banks in an OSGi environment. For development, we simply repackage / export it using the Maven bundle [1] plugin. The problem is that, for legal reasons, we will not be able to redistribute these packages to our client, who kills both embedding and repackaging, which are (AFAIK) the only options (see [2]).

Before using OSGi, we had a section in our manual that describes how to put these files in the library folder after you purchased them yourself. Given the OSGi rules for class resolution, this obviously will no longer work.

Do I correctly assume that the only way to resolve this is legal, that is, obtaining a redistribution license from the package provider (which can be a dangerous nightmare and hinder timely delivery), or am I missing a technical solution

[1] How can I exchange non-OSGi libraries between packages in an OSGi container?

[2] Using the non-osgi library in the osgi application

+5
source share
4 answers

I would simply add this JAR to the main path of the Java application class, using the existing location in the library folder, as you already installed. Then you can export the packages you need to OSGi using the property org.osgi.framework.system.packages.extra.

+3

. , .

,

  • -OSGi jar J.jar,
  • () OSGi
    • a META-INF/MANIFEST.MF, J.jar
    • - META-INF/DOWNLOADS - , J.jar
  • OSGi ( ), , META-INF/DOWNLOADS. , , .

, , ... .

, , . , .

+3

, OSGi Remote Services ( OSGi) . OSGi, , .

+2

. ?

(1) , jar , .

(2) , , , . , , , , (1), .

(3) , ? , .

- , (3) (2), ?

I think it is, in every sense and purpose. We effectively distribute the bank with our program, as is done under the hood, is not related to the spirit of the redistribution license. Anyone who receives a program receives a jar with it, it is a fact.

At the very least, we should contact the author to make sure that he is in order with him. We must pay due attention to free software, not use them in such a way as to contradict the wishes of the authors.

+2
source

All Articles