blob: 26a48ad3b8c85d2b8d34cca44b050c0c490f6c70 [file] [log] [blame]
Stuart McCullochd16db972011-07-05 11:48:22 +00001<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Stuart McCulloch68b7ef72014-06-20 11:11:41 +00002<!-- Generated by Apache Maven Doxia at Jun 20, 2014 -->
Stuart McCullochd16db972011-07-05 11:48:22 +00003<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
Stuart McCullochd16db972011-07-05 11:48:22 +00004 <head>
Stuart McCullochd16db972011-07-05 11:48:22 +00005 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
Stuart McCullochd16db972011-07-05 11:48:22 +00006 <title>Maven Bundle Plugin - Introduction</title>
Stuart McCullochd16db972011-07-05 11:48:22 +00007 <style type="text/css" media="all">
Stuart McCullochd16db972011-07-05 11:48:22 +00008 @import url("./css/maven-base.css");
Stuart McCullochd16db972011-07-05 11:48:22 +00009 @import url("./css/maven-theme.css");
Stuart McCullochd16db972011-07-05 11:48:22 +000010 @import url("./css/site.css");
Stuart McCullochd16db972011-07-05 11:48:22 +000011 </style>
Stuart McCullochd16db972011-07-05 11:48:22 +000012 <link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
Stuart McCullochd16db972011-07-05 11:48:22 +000013 <meta name="author" content="Stuart McCulloch" />
Stuart McCullochd16db972011-07-05 11:48:22 +000014 <meta name="Date-Creation-yyyymmdd" content="20110628" />
Stuart McCulloch68b7ef72014-06-20 11:11:41 +000015 <meta name="Date-Revision-yyyymmdd" content="20140620" />
Stuart McCullochd16db972011-07-05 11:48:22 +000016 <meta http-equiv="Content-Language" content="en" />
Stuart McCullochd16db972011-07-05 11:48:22 +000017
Stuart McCullochd16db972011-07-05 11:48:22 +000018 </head>
Stuart McCullochd16db972011-07-05 11:48:22 +000019 <body class="composite">
Stuart McCullochd16db972011-07-05 11:48:22 +000020 <div id="banner">
Stuart McCullochd16db972011-07-05 11:48:22 +000021 <div id="bannerLeft">
Stuart McCullochd16db972011-07-05 11:48:22 +000022 Maven Bundle Plugin
Stuart McCullochd16db972011-07-05 11:48:22 +000023 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000024 <div class="clear">
Stuart McCullochd16db972011-07-05 11:48:22 +000025 <hr/>
Stuart McCullochd16db972011-07-05 11:48:22 +000026 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000027 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000028 <div id="breadcrumbs">
Stuart McCullochd16db972011-07-05 11:48:22 +000029
Stuart McCullochd16db972011-07-05 11:48:22 +000030
Stuart McCullochd16db972011-07-05 11:48:22 +000031 <div class="xleft">
Stuart McCulloch68b7ef72014-06-20 11:11:41 +000032 <span id="publishDate">Last Published: 2014-06-20</span>
33 &nbsp;| <span id="projectVersion">Version: 2.5.0</span>
Stuart McCullochd16db972011-07-05 11:48:22 +000034 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000035 <div class="xright">
Stuart McCullochd16db972011-07-05 11:48:22 +000036
Stuart McCullochd16db972011-07-05 11:48:22 +000037 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000038 <div class="clear">
Stuart McCullochd16db972011-07-05 11:48:22 +000039 <hr/>
Stuart McCullochd16db972011-07-05 11:48:22 +000040 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000041 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +000042 <div id="leftColumn">
Stuart McCullochd16db972011-07-05 11:48:22 +000043 <div id="navcolumn">
Stuart McCullochd16db972011-07-05 11:48:22 +000044
Stuart McCullochd16db972011-07-05 11:48:22 +000045
Stuart McCullochd16db972011-07-05 11:48:22 +000046 <h5>Overview</h5>
Stuart McCullochd16db972011-07-05 11:48:22 +000047 <ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000048 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000049 <strong>Introduction</strong>
Stuart McCullochd16db972011-07-05 11:48:22 +000050 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000051 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000052 <a href="plugin-info.html" title="Goals">Goals</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000053 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000054 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000055 <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Maven+Bundle+Plugin+%28BND%29" class="externalLink" title="Wiki">Wiki</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000056 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000057 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000058 <a href="https://cwiki.apache.org/confluence/display/FELIX/Apache+Felix+Bundle+Plugin+FAQ" class="externalLink" title="FAQ">FAQ</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000059 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000060 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000061 <a href="jira-report.html" title="Release Notes">Release Notes</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000062 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000063 </ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000064 <h5>Project Documentation</h5>
Stuart McCullochd16db972011-07-05 11:48:22 +000065 <ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000066 <li class="expanded">
Stuart McCullochd16db972011-07-05 11:48:22 +000067 <a href="project-info.html" title="Project Information">Project Information</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000068 <ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000069 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000070 <strong>About</strong>
Stuart McCullochd16db972011-07-05 11:48:22 +000071 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000072 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000073 <a href="dependencies.html" title="Dependencies">Dependencies</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000074 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000075 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000076 <a href="issue-tracking.html" title="Issue Tracking">Issue Tracking</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000077 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000078 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000079 <a href="mail-lists.html" title="Mailing Lists">Mailing Lists</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000080 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000081 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000082 <a href="license.html" title="Project License">Project License</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000083 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000084 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000085 <a href="team-list.html" title="Project Team">Project Team</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000086 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000087 <li class="none">
Stuart McCullochd16db972011-07-05 11:48:22 +000088 <a href="source-repository.html" title="Source Repository">Source Repository</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000089 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000090 </ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000091 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000092 <li class="collapsed">
Stuart McCullochd16db972011-07-05 11:48:22 +000093 <a href="project-reports.html" title="Project Reports">Project Reports</a>
Stuart McCullochd16db972011-07-05 11:48:22 +000094 </li>
Stuart McCullochd16db972011-07-05 11:48:22 +000095 </ul>
Stuart McCullochd16db972011-07-05 11:48:22 +000096 <a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
Stuart McCullochd16db972011-07-05 11:48:22 +000097 <img class="poweredBy" alt="Built by Maven" src="./images/logos/maven-feather.png" />
Stuart McCullochd16db972011-07-05 11:48:22 +000098 </a>
Stuart McCullochd16db972011-07-05 11:48:22 +000099
Stuart McCullochd16db972011-07-05 11:48:22 +0000100
Stuart McCullochd16db972011-07-05 11:48:22 +0000101 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000102 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000103 <div id="bodyColumn">
Stuart McCullochd16db972011-07-05 11:48:22 +0000104 <div id="contentBox">
Stuart McCullochd16db972011-07-05 11:48:22 +0000105 <!-- Licensed to the Apache Software Foundation (ASF) under one --><!-- or more contributor license agreements. See the NOTICE file --><!-- distributed with this work for additional information --><!-- regarding copyright ownership. The ASF licenses this file --><!-- to you under the Apache License, Version 2.0 (the --><!-- "License"); you may not use this file except in compliance --><!-- with the License. You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, --><!-- software distributed under the License is distributed on an --><!-- "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY --><!-- KIND, either express or implied. See the License for the --><!-- specific language governing permissions and limitations --><!-- under the License. --><!-- NOTE: For help with the syntax of this file, see: --><!-- http://maven.apache.org/doxia/references/apt-format.html --><div class="section"><h2>Maven Bundle Plugin<a name="Maven_Bundle_Plugin"></a></h2><p>This Maven 2 plugin is based on the <a class="externalLink" href="http://www.aqute.biz/Bnd/Bnd/">BND</a> 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.</p><div class="section"><h3>Goals Overview<a name="Goals_Overview"></a></h3><p>General Information about the goals.</p><ul><li><a href="./bundle-mojo.html">bundle:bundle</a> Create an OSGi bundle from Maven project. (life-cycle goal)</li><li><a href="./manifest-mojo.html">bundle:manifest</a> Generate an OSGi manifest for this project.</li><li><a href="./cleanVersions-mojo.html">bundle:cleanVersions</a> Convert a group of versions to OSGi format.</li><li><a href="./instructions-mojo.html">bundle:instructions</a> Generate BND instructions for this project.</li><li><a href="./install-mojo.html">bundle:install</a> Installs bundle details in the local OBR repository. (life-cycle goal)</li><li><a href="./deploy-mojo.html">bundle:deploy</a> Deploys bundle details to a remote OBR repository. (life-cycle goal)</li><li><a href="./index-mojo.html">bundle:index</a> Index the content of a maven repository using OBR.</li><li><a href="./install-file-mojo.html">bundle:install-file</a> Installs bundle details in the local OBR repository. (command-line goal)</li><li><a href="./deploy-file-mojo.html">bundle:deploy-file</a> Deploys bundle details to a remote OBR repository. (command-line goal)</li><li><a href="./clean-mojo.html">bundle:clean</a> Clean a local OBR repository by finding and removing missing resources.</li><li><a href="./remote-clean-mojo.html">bundle:remote-clean</a> Clean a remote OBR repository by finding and removing missing resources.</li><li><a href="./ant-mojo.html">bundle:ant</a> Generate Ant script to create the bundle. (you should run ant:ant first)</li></ul></div><div class="section"><h3>Usage<a name="Usage"></a></h3><p>General instructions on how to use the Maven Bundle Plugin can be found on the <a class="externalLink" href="http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html">wiki page</a>. Some more specific use cases are described in the examples given below.</p><p>In case you still have questions regarding the plugin's usage, please have a look at the <a class="externalLink" href="http://felix.apache.org/site/apache-felix-bundle-plugin-faq.html">FAQ</a> and feel free to contact the <a class="externalLink" href="http://felix.apache.org/site/mailinglists.html">user mailing list</a>. The posts to the mailing list are archived and could already contain the answer to your question as part of an older thread. Hence, it is also worth browsing/searching the <a class="externalLink" href="http://www.mail-archive.com/users@felix.apache.org/">mail archive</a>.</p><p>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 <a href="./issue-tracking.html">issue tracker</a>. When creating a new issue, please provide a comprehensive description of your concern. Especially for fixing bugs it is crucial that the developers can reproduce your problem. For this reason, entire debug logs, POMs or most preferably little demo projects attached to the issue are very much appreciated. Of course, patches are welcome, too. Contributors can check out the project from our <a href="./source-repository.html">source repository</a> and will find supplementary information in the <a class="externalLink" href="http://felix.apache.org/site/development.html">Apache Felix developers guide</a>. </p></div><div class="section"><h3>Examples<a name="Examples"></a></h3><p>To provide you with better understanding on some usages of the Maven Bundle Plugin, you can take a look into the following examples:</p><ul><li>Examples coming soon!</li></ul></div></div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000106 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000107 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000108 <div class="clear">
Stuart McCullochd16db972011-07-05 11:48:22 +0000109 <hr/>
Stuart McCullochd16db972011-07-05 11:48:22 +0000110 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000111 <div id="footer">
Stuart McCulloch68b7ef72014-06-20 11:11:41 +0000112 <div class="xright">Copyright &#169; 2006-2014
Stuart McCullochd16db972011-07-05 11:48:22 +0000113 <a href="http://www.apache.org/">The Apache Software Foundation</a>.
Stuart McCullochd16db972011-07-05 11:48:22 +0000114 All Rights Reserved.
Stuart McCullochd16db972011-07-05 11:48:22 +0000115
Stuart McCullochd16db972011-07-05 11:48:22 +0000116 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000117 <div class="clear">
Stuart McCullochd16db972011-07-05 11:48:22 +0000118 <hr/>
Stuart McCullochd16db972011-07-05 11:48:22 +0000119 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000120 </div>
Stuart McCullochd16db972011-07-05 11:48:22 +0000121 </body>
Stuart McCullochd16db972011-07-05 11:48:22 +0000122</html>