Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 1 | ------ |
| 2 | Introduction |
| 3 | ------ |
| 4 | Stuart McCulloch |
| 5 | ------ |
| 6 | 2011-06-28 |
| 7 | ------ |
| 8 | |
| 9 | ~~ Licensed to the Apache Software Foundation (ASF) under one |
| 10 | ~~ or more contributor license agreements. See the NOTICE file |
| 11 | ~~ distributed with this work for additional information |
| 12 | ~~ regarding copyright ownership. The ASF licenses this file |
| 13 | ~~ to you under the Apache License, Version 2.0 (the |
| 14 | ~~ "License"); you may not use this file except in compliance |
| 15 | ~~ with the License. You may obtain a copy of the License at |
| 16 | ~~ |
| 17 | ~~ http://www.apache.org/licenses/LICENSE-2.0 |
| 18 | ~~ |
| 19 | ~~ Unless required by applicable law or agreed to in writing, |
| 20 | ~~ software distributed under the License is distributed on an |
| 21 | ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 22 | ~~ KIND, either express or implied. See the License for the |
| 23 | ~~ specific language governing permissions and limitations |
| 24 | ~~ under the License. |
| 25 | |
| 26 | ~~ NOTE: For help with the syntax of this file, see: |
| 27 | ~~ http://maven.apache.org/doxia/references/apt-format.html |
| 28 | |
| 29 | Maven Bundle Plugin |
| 30 | |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 31 | This Maven 2 plugin is based on the {{{http://www.aqute.biz/Bnd/Bnd/}BND}} tool from Peter Kriens. The way BND works is by treating your project as a big collection of classes (e.g., project code, dependencies, and the class path). The way you create a bundle with BND is to tell it the content of the bundle's JAR file as a subset of the available classes. This plugin wraps BND to make it work specifically with the Maven 2 project structure and to provide it with reasonable default behavior for Maven 2 projects. |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 32 | |
| 33 | * Goals Overview |
| 34 | |
| 35 | General Information about the goals. |
| 36 | |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 37 | * {{{./bundle-mojo.html}bundle:bundle}} Create an OSGi bundle from Maven project. (life-cycle goal) |
| 38 | |
| 39 | * {{{./manifest-mojo.html}bundle:manifest}} Generate an OSGi manifest for this project. |
| 40 | |
| 41 | * {{{./cleanVersions-mojo.html}bundle:cleanVersions}} Convert a group of versions to OSGi format. |
| 42 | |
| 43 | * {{{./instructions-mojo.html}bundle:instructions}} Generate BND instructions for this project. |
| 44 | |
| 45 | * {{{./install-mojo.html}bundle:install}} Installs bundle details in the local OBR repository. (life-cycle goal) |
| 46 | |
| 47 | * {{{./deploy-mojo.html}bundle:deploy}} Deploys bundle details to a remote OBR repository. (life-cycle goal) |
| 48 | |
| 49 | * {{{./index-mojo.html}bundle:index}} Index the content of a maven repository using OBR. |
| 50 | |
| 51 | * {{{./install-file-mojo.html}bundle:install-file}} Installs bundle details in the local OBR repository. (command-line goal) |
| 52 | |
| 53 | * {{{./deploy-file-mojo.html}bundle:deploy-file}} Deploys bundle details to a remote OBR repository. (command-line goal) |
| 54 | |
| 55 | * {{{./clean-mojo.html}bundle:clean}} Clean a local OBR repository by finding and removing missing resources. |
| 56 | |
| 57 | * {{{./remote-clean-mojo.html}bundle:remote-clean}} Clean a remote OBR repository by finding and removing missing resources. |
| 58 | |
| 59 | * {{{./ant-mojo.html}bundle:ant}} Generate Ant script to create the bundle. (you should run ant:ant first) |
| 60 | |
| 61 | [] |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 62 | |
| 63 | * Usage |
| 64 | |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 65 | General instructions on how to use the Maven Bundle Plugin can be found on the |
| 66 | {{{http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html}wiki page}}. |
| 67 | Some more specific use cases are described in the examples given below. |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 68 | |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 69 | In case you still have questions regarding the plugin's usage, please have a look at the |
| 70 | {{{http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html}FAQ}} and feel |
| 71 | free to contact the {{{http://felix.apache.org/site/mailinglists.html}user mailing list}}. |
| 72 | The posts to the mailing list are archived and could |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 73 | already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 74 | the {{{http://www.mail-archive.com/users@felix.apache.org/}mail archive}}. |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 75 | |
| 76 | If you feel like the plugin is missing a feature or has a defect, you can fill a feature request or bug report in our |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 77 | {{{./issue-tracking.html}issue tracker}}. When creating a new issue, please provide a comprehensive description of your |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 78 | concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, |
| 79 | entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. |
| 80 | Of course, patches are welcome, too. Contributors can check out the project from our |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 81 | {{{./source-repository.html}source repository}} and will find supplementary information in the |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 82 | {{{http://felix.apache.org/site/development.html}Apache Felix developers guide}}. |
| 83 | |
| 84 | * Examples |
| 85 | |
| 86 | To provide you with better understanding on some usages of the Maven Bundle Plugin, |
| 87 | you can take a look into the following examples: |
| 88 | |
Stuart McCulloch | 7246632 | 2011-06-29 00:29:36 +0000 | [diff] [blame] | 89 | * Examples coming soon! |
Stuart McCulloch | 138a5a7 | 2011-06-28 01:12:48 +0000 | [diff] [blame] | 90 | |