Commit f238bb1
committed
Add missing Export-Package to mcp-json-jackson2 and mcp-json-jackson3
The bnd configs for mcp-json-jackson2 and mcp-json-jackson3 are missing
Export-Package, unlike mcp-core which correctly exports its packages.
Without Export-Package, all packages are sealed as bundle-private,
causing 'Access restriction' errors for consumers that use
Require-Bundle (e.g. Eclipse PDE / Tycho projects).
This was introduced in modelcontextprotocol#779 which added OSGi Declarative Services
support for modelcontextprotocol#562. The DS service registration works without exports
(SCR instantiates classes internally), but direct instantiation
such as 'new JacksonMcpJsonMapperSupplier()' from another bundle
requires the packages to be exported.
Add the same Export-Package directive used in mcp-core.1 parent 46bacda commit f238bb1
2 files changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| 43 | + | |
43 | 44 | | |
44 | 45 | | |
45 | 46 | | |
| |||
0 commit comments