4.0.0 org.apache.sling sling 12 ../../parent org.apache.sling org.apache.sling.samples.frameworkfragment 0.9.9-SNAPSHOT jar Apache Sling Sample Framework Fragment Bundle Shows how to create a fragment bundle that causes additional packages from the JVM environment to be exported. After starting this bundle, the OSGi console detail view of the system bundle (/system/console/bundles/0) should list two com.example packages as being exported. Those packages are just dummy examples, the list of exported packages will obviously need to be adapted to create your own fragment bundle. org.codehaus.groovy.maven gmaven-plugin 1.0 generate-resources execute ${project.version} // Convert POM version to valid OSGi version identifier project.properties['osgi.version'] = (project.properties['rawVersion'] =~ /-/).replaceAll('.') org.apache.maven.plugins maven-jar-plugin true false ${osgi.version} ${project.description} ${project.name} http://sling.apache.org 2 Apache Software Foundation system.bundle; extension:=framework ${project.artifactId} com.example.somepackage; version=1.2.3, com.example.anotherpackage; version=4.5.6