@Version("1.0.0") public class MyLibrary { // ... } <project> <properties> <osgi.version>1.0.0</osgi.version> <osgi.dependencies>...</osgi.dependencies> <osgi.framework>...</osgi.framework> ... </properties> <dependencies> <dependency> <groupId>org.osgi</groupId> <artifactId>osgi-annotation</artifactId> <version>${osgi.version}</version> </dependency> ... </dependencies> <build> <plugins> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>4.3.1</version> <extensions>true</extensions> <configuration> <instructions> <Bundle-Version>${osgi.version}</Bundle-Version> <Import-Package>${osgi.dependencies}</Import-Package> ... </instructions> </configuration> </plugin> ... </plugins> </build> </project>


上一篇:
下一篇:
切换中文