This isn’t really possible. The osgi-compendium package is not just a program or library; it represents a specification published by a standards body, the OSGi Alliance. The specification supports the java servlet API 2.5 and above. We cannot simply update to 3.1 since that could break any consumers using 2.5 — also the package would not comply with the published specification.
Neil Bartlett