<plugins>
<plugin>
<groupId>biz.aQute.bnd</groupId>
<artifactId>bnd-maven-plugin</artifactId>
<version>4.3.1</version>
<executions>
<execution>
<id>bnd-process</id>
<goals>
<goal>bnd-process</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
properties
Export-Package: com.example.package
Bundle-Version: 1.0.0
Bundle-Activator: com.example.Activator
Import-Package: org.osgi.framework
package com.example;
import org.osgi.annotation.versioning.ProviderType;
@InterfaceVersion(1)
@ProviderType
public interface ExampleService {
// ...
}
shell
mvn clean package