Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[leshan-dev] [Bug 483250] New: leshan-core doesn't export all required packages (osgi related)

https://bugs.eclipse.org/bugs/show_bug.cgi?id=483250
Product/Component: Leshan / General

            Bug ID: 483250
           Summary: leshan-core doesn't export all required packages (osgi
                    related)
    Classification: IoT
           Product: Leshan
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: General
          Assignee: leshan-inbox@xxxxxxxxxxx
          Reporter: v.valchev@xxxxxxxxxx

Not all required packages are provided by the leshan-core.

The bug is easily reproducible if you follow the instructions below:

1. install and start leshan-core to an osgi framework
2. install and leshan-server-core to the same osgi framework

The result is that leshan-server-core cannot be resolved due to missing
'org.eclipse.leshan.core.observation' package.



The problem is in the pom.xml file in the maven-bundle-plugin configuration.
The package is not mentioned in the <Export-Package> instruction.

Using <Export-Package> means, that most of the time you add a new package, it
should be mentioned there. However there is a more general way and it is to
replace  <Export-Package> with the following line:
<_exportcontents>*</_exportcontents>

It will export ALL packages from the current bundle (not including the
dependencies).

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


Back to the top