@RomanStofeel The legacy OSGi plugin transformation process is described here (among other places). However, you don’t really want to be using it with Platform 7:
- https://developer.atlassian.com/server/framework/atlassian-sdk/going-from-plugin-to-osgi-bundle/
- https://developer.atlassian.com/server/framework/atlassian-sdk/automatic-generation-of-spring-configuration/
@kmacleod Multiple plugin vendors have fallen into the trap of trying to use <component-import>
with Platform 7 and it seems like this is causing a lot of hang-wringing and wasted time (I believe there are half a dozen examples on just this thread).
Could Atlassian consider either removing support for <component-import>
entirely (at least for non-Atlassian plugins), thereby forcing people to upgrade by showing a sensible error message? Alternatively, can you fix <component-import>
so that it actually works on platform 7?
The root cause seems to be that the transformation process adds OSGi imports for all classes referenced by all methods of the imported class, plus all classes referenced by all methods of any superclasses. This prevents people from importing many non-trivial beans. If Atlassian is going to maintain <component-import>
, I imagine that this auto-import-generation procedure needs to automatically skip any packages listed in the banned dependency list.