http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
Adding OSGi metadata to existing projects without changing the packaging type
If you want to keep your project packaging type (for example "jar") but would like to add OSGi metadata
you can use the manifest goal to generate a bundle manifest. The maven-jar-plugin can then be used to
add this manifest to the final artifact. For example:
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
</plugin>
If you want to use packaging types other than "jar" and "bundle" then you also need to enable support
for them in the bundleplugin configuration, for example if you want to use the plugin with WAR files:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<executions>
<execution>
<id>bundle-manifest</id>
<phase>process-classes</phase>
<goals>
<goal>manifest</goal>
</goals>
</execution>
</executions>
<configuration>
<supportedProjectTypes>
<supportedProjectType>jar</supportedProjectType>
<supportedProjectType>bundle</supportedProjectType>
<supportedProjectType>war</supportedProjectType>
</supportedProjectTypes>
<instructions>
<!-- ...etc... -->
</instructions>
</configuration>
</plugin>
分享到:
相关推荐
Taking the pain out of adding a horizontal scrollbar to a listbox.给列表框添加水平滚动条
In this course, you will learn to build projects that will help developers achieve a sound understanding of the engine when it comes to building games. This course can help you build on your ...
This book includes topics such as rollover navigation menus without scripts, adding audio and video, rounded corners, drop shadows, adding PayPal services, and much more. It also includes sections on ...
In this course, you will learn to build projects that will help developers achieve a sound understanding of the engine when it comes to building games. This course can help you build on your ...
- FIX: The PointOnLine() function calulations have "single" type numbers overflow problem (changed to "double"). - FIX: The pfJoin and pfClose flags incorrectly calculates in GetEditPathCaps(). ...
Adding metadata to the document 177 Changing the document character set 178 Changing the document MIME type 180 Controlling client caching of responses 181 Creating a PDF in a component 183 ...
安装Mysql-python时报错Adding Python Information to the Windows Registry 需要使用register.py cmd python register.py
Introducing lifecycle to the paint program 73 ■ The OSGi framework’s role in the lifecycle 75 ■ The bundle activator manifest entry 76 ■ Introducing the lifecycle API 77 ■ Lifecycle state diagram...
Android, the next-generation open mobile platform from Google and the Open Handset Alliance, is poised to become a significant player in the mobile device market. The Android platform gives developers...
The race to lead the world in 5G is underway and China, South Korea and other nations are competing to win. They understand that wireless leadership means billions in economic growth and millions of ...
8 Adding More Metrics to Gain a Better Understanding 9 Putting It All Together in a Professional Way Classification Task Build Real World Apps – Who Will Win the Next UFC 10 Collecting Possible ...
The vision is “To produce the best UNIX-like operating system package possible, with due respect to the original software tools ideology as well as usability, performance and stability.” The ...
In this course, you will learn to build projects that will help developers achieve a sound understanding of the engine when it comes to building games. This course can help you build on your ...
Adding filters to the Open File dialog(24KB)
You'll explore advanced concepts such as making requests to a REST API from an Angular application, creating a web server using Node.js and Express, and adding dynamic metadata. You'll also ...
You’ll use a starting toolset to incorporate into your existing workflow, develop future projects, and reduce any dependency on graphics applications for simple projects. This book is an excellent ...
Create your own Arduino-based designs, gain in-depth knowledge of the architecture of Arduino, and learn the user-friendly Arduino language all in the context of practical projects that you can build ...
Adding a Node to a 10g RAC Cluster 希望对那些ORACLE使用者有点作用
Adding Password Management to Your Templates(cloudstack)
A tutorial on adding columns to Explorer’s details view via a column handler shell extension.(13KB)