an example of maven-bundle-plugin
来源:互联网 发布:郑州师范学院网络教育 编辑:程序博客网 时间:2024/05/18 02:44
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
<!-- | the following instructions build a simple set of public/private
classes into an OSGi bundle -->
<configuration>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>*</Import-Package>
<!-- | assume public classes are in the top package, and private classes
are under ".internal" -->
<Export-Package>!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${project.version}"</Export-Package>
<Private-Package>${bundle.namespace}.internal.*,*</Private-Package>
<Embed-Dependency>*;scope=compile|runtime|system</Embed-Dependency>
<!-- | each module can override these defaults in their osgi.bnd file -->
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
<extensions>true</extensions>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>1.4.3</version>
<!-- | the following instructions build a simple set of public/private
classes into an OSGi bundle -->
<configuration>
<instructions>
<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Import-Package>*</Import-Package>
<!-- | assume public classes are in the top package, and private classes
are under ".internal" -->
<Export-Package>!${bundle.namespace}.internal.*,${bundle.namespace}.*;version="${project.version}"</Export-Package>
<Private-Package>${bundle.namespace}.internal.*,*</Private-Package>
<Embed-Dependency>*;scope=compile|runtime|system</Embed-Dependency>
<!-- | each module can override these defaults in their osgi.bnd file -->
<_include>-osgi.bnd</_include>
</instructions>
</configuration>
<extensions>true</extensions>
</plugin>
osgi.bnd
#-----------------------------------------------------------------
# Use this file to add customized Bnd instructions for the bundle
#-----------------------------------------------------------------
Bundle-Activator: com.ma.ajb.wrapper.AJBActivator
Require-Bundle: org.apache.servicemix.bundles.xerces,org.apache.servicemix.bundles.xalan
org.osgi.framework.BundleActivator worked at lifecycle layer with start() and stop() method.
maven-bundle-plugin is based on bnd tool, detail information please reference http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
0 0
- an example of maven-bundle-plugin
- maven-bundle-plugin
- maven-bundle-plugin
- Bundle Plugin for Maven
- maven-bundle-plugin
- Bundle Plugin for Maven
- an example of repeater
- an example of using automake.
- An Example of association query
- An example of responseXML.getElementsByTagName
- An example of using Thrift
- an example of enhancement framework
- An Entry Example of Log4j
- 基于maven-bundle-plugin生成osgi插件
- maven-bundle-plugin自定义包含到bundle中的资源
- An easy example of using AJAX
- An example of lib3ds 2.0 with opengl32
- An Example of Perl Multi-thread 2
- jquery与google map api结合使用 控件,监听器
- XML数据结构解析
- 热点新闻算法
- ubuntu egdit中文乱码
- bzoj1734 [Usaco2005 feb]Aggressive cows 愤怒的牛
- an example of maven-bundle-plugin
- shu_1243 防御导弹
- 编程是一场思维与意志的战争
- 保护模式详解
- 1045. Favorite Color Stripe
- UITouch & UIViewController
- Vert.x
- 纪念中国反毒之父—王江民
- Pick定理的几个出人意料的应用