maven-bundle-plugin
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.1.0</version>
<executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Export-Package>jline;jline.console;jline.console.completer;jline.console.history;version:=${project.version};-noimport:=true,
=org.fusesource.jansi;version=${jansi.version}</Export-Package>
<Import-Package>javax.swing;resolution:=optional</Import-Package>
<DynamicImport-Package>*</DynamicImport-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
-----------------------------old
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>2.0.1</version>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
<configuration>
<instructions>
<Import-Package>!org.fusesource.jansi*,!org.fusesource.hawtjni*,sun.reflect;resolution:=optional,*</Import-Package>
</instructions>
</configuration>
</execution>
</executions>
</plugin>
http://felix.apache.org/components/bundle-plugin/index.html
Bundle Plugin for Maven
https://blog.csdn.net/Snoopy7713/article/details/84172208
OSGi实战(1)使用Maven创建Bundle
https://blog.csdn.net/guzicheng/article/details/43735031
浙公网安备 33010602011771号