Hi,
I almost added a package-info.java below, but stopped.

@Version("2.2.0")
package org.apache.sling.commons.osgi;

import aQute.bnd.annotation.Version;

and removed the instructions from the pom.xml, until i inspected the
manifest which went from

Export-Package: org.apache.sling.commons.osgi;uses:="org.osgi.service.ev
 ent,org.osgi.framework,org.osgi.util.tracker";version="2.2.0"

to

Export-Package: org.apache.sling.commons.osgi;uses:="org.osgi.service.ev
 ent,org.osgi.framework,org.osgi.util.tracker";version="2.2.0",org.apach
 e.sling.commons.osgi.bundleversion;uses:="org.osgi.framework";version="
 2.1.1.SNAPSHOT"


It seems like switching to  package-info.java caused all child
packages to be exported with a default version matching the bundle
version.

Is that the expected behaviour, and if so, how do you stop it
happening? The doc on the annotations (or the source code) is not that
revealing.

Ian

Reply via email to