I got runtime errors, when I do not export it, because it is somehow needed by the lib.rest package. So I exported it. Additionaly I had to add "DynamicImport-Package: *" to the org.openhab.io.rest.lib-manifest.

Maybe there is an more elegant way to solve/configure this. But this was the only working one I found.