2018-05-29 15:26:27 UTC
Because we are using dbcp2 of apache and we moved to the latest release we
had to also include jta (javax.transaction) into our plugin
That is a very old lib so we adjusted the manifest our self to have stuff
then it works fine in eclipse. (it would complain because of restricted api
on javax.transaction.TransactionManager class that we use because we
override a class from a 3th party lib)
But when i use this now with tycho:
[ERROR] Access restriction: The type 'TransactionManager' is not API
(restriction on classpath entry
but that shouldnt be restricted...
If i run maven with -X and look what classpath it generated it something
i think that means it only exports the /xa/ package folder?
If i look a bit more into the classpath i see also this:
AND A LOT MORE;?**/*]
Why does osgi bundle have that as some kind of export?
How can i get tycho to compile just correctly?
Why does it compain at the first place? Is export package really needed?
When do we really have those restricted api in the first place?