...
AEM applications usually need some OSGi core and compendium packages at compile time. In the past, it was the usual approach to define a dependency to osgi.core
and osgi.cmpn
which included everything that was defined for a major OSGi version. But that does not necessarily match to what is really deployed in the AEM instance, as not all bundles are update updated to the latest OSGi spec at the same time, and some are not present at all.
...