Maven Bundle Plugin

##### Overview

- Introduction
- Goals
- Wiki
- FAQ
- Release Notes

##### Project Documentation

- Project Information
- Project Reports
  - JIRA Report
  - Plugin Documentation
  - Source Xref
  - Surefire Report
  - Test Source Xref

## JIRA Report

Key | Summary | Status | Resolution | By
--- | --- | --- | --- | ---
FELIX-4005 | Maven Bundle Plugin fails with ArrayIndexOutOfBoundsException, "Invalid Class File" errors with Java 8 features | Resolved | Fixed | Unassigned
FELIX-3347 | Upper-case environment variables end up in final manifest | Closed | Fixed | Stuart McCulloch
FELIX-2765 | bundle plugin throw IllegalArgumentException while do the install | Closed | Fixed | Unassigned
FELIX-661 | maven bundle plugin does not close the accessed fie /jar streams | Closed | Fixed | Stuart McCulloch
FELIX-4067 | Old BND used causes problems during annotations processing | Resolved | Fixed | Unassigned
FELIX-3585 | Dependencies with classes or resources in the default package cannot be embedded | Resolved | Fixed | Unassigned
FELIX-2934 | Bundle-ClassPath contains "." despite using _wab instruction | Closed | Fixed | Stuart McCulloch
FELIX-4017 | @ProviderType does not work (bnd "provide:=true" annotation?) | Resolved | Fixed | Unassigned
FELIX-3973 | Exclusion from {local-packages} doesn't work anymore | Resolved | Fixed | Unassigned
FELIX-3638 | Missing package import for annotation default value | Resolved | Fixed | Unassigned
FELIX-3630 | Packages exported by bundle are (re)-imported with incorrect version | Resolved | Fixed | Unassigned
FELIX-3602 | The bundle plugin should generate the blueprint header with the file locations | Resolved | Fixed | Guillaume Nodet
FELIX-3601 | Incorrect namespace in component XML for DS Annotations | Resolved | Fixed | Unassigned
FELIX-3497 | Wrong artifact type attached as a secondary artifact when project packaging is set to "pom" | Resolved | Fixed | Unassigned
FELIX-3407 | Imports are missed for generics | Resolved | Fixed | Unassigned
FELIX-3352 | Maven Bundle Plugin ignores resource properties configured inside <filters> section | Resolved | Fixed | Unassigned
FELIX-3349 | wrong bundle manifest contents in some cases | Resolved | Fixed | Unassigned
FELIX-3310 | [patch] maven-bundle-plugin build fails with maven3 (manageArtifactSystemPath is missing) | Closed | Fixed | Stuart McCulloch
FELIX-3293 | Exception while creating empty fragment bundles with version 2.3.6 | Resolved | Fixed | Unassigned
FELIX-3254 | manifest goal generates wrong Export-Package when Embed-Dependency | Closed | Fixed | Stuart McCulloch
FELIX-3222 | [PATCH] build fails with "unreported exception" | Closed | Fixed | Stuart McCulloch
FELIX-3210 | Maven bundle plugin remote-clean goal without user confirmation | Closed | Fixed | Stuart McCulloch
FELIX-3209 | Make sure the properties passed to BND only include string values | Closed | Fixed | Stuart McCulloch
FELIX-3208 | Provide default value for sourcepath when using BND -sources=true | Closed | Fixed | Stuart McCulloch
FELIX-3206 | Restore the BND analyzer approach which creates a MANIFEST.MF based on the contents of the jar | Closed | Fixed | Stuart McCulloch
FELIX-3188 | [PATCH] exception org.apache.maven.project.artifact.InvalidDependencyVersionException has already been caught | Closed | Fixed | Stuart McCulloch
FELIX-3185 | Negative Embed-Dependency clauses aren't handled correctly | Closed | Fixed | Stuart McCulloch
FELIX-3165 | Add an option to the manifest goal that will copy any BND generated resources to the target folder | Closed | Fixed | Stuart McCulloch
FELIX-3092 | Support relative paths in "urlTemplate" parameter of "bundle:index" goal in maven bundle plugin | Closed | Fixed | Stuart McCulloch
FELIX-3061 | improvements to Embed-Dependency logic to allow better m2e integration | Closed | Fixed | Stuart McCulloch
FELIX-3058 | maven-bundle-plugin 2.3.5 incompatible with maven-source-plugin (regression) | Closed | Fixed | Stuart McCulloch
FELIX-3037 | Plugin does not work with Java 5 | Closed | Fixed | Stuart McCulloch
FELIX-3031 | maven3 deployment fails where maven2 works | Closed | Fixed | Stuart McCulloch
FELIX-3011 | Add a new goal to save the bnd instructions that would be passed onto bnd, to allow people to use other toolchains such as bndtools | Closed | Fixed | Stuart McCulloch
FELIX-2884 | The multiplicity isn't taken into account by the maven bundle plugin and bundlerepository when generating the repository xml | Closed | Fixed | Guillaume Nodet
FELIX-2872 | Provide a way to have an easier to read manifest | Closed | Fixed | Stuart McCulloch
FELIX-2820 | Provide a default value when using <_wab/> | Closed | Fixed | Stuart McCulloch
FELIX-2819 | packageinfo files in src/main/java are ignored | Closed | Fixed | Stuart McCulloch
FELIX-2812 | The <Embed-Dependency> filter can fail if your matching against multiple "*" artifact ids. | Closed | Fixed | Hiram Chirino
FELIX-2811 | If <Private-Package>!*</Private-Package> is defined the all packages should be exported by {local-packages} | Closed | Fixed | Hiram Chirino
FELIX-2808 | maven-bundle-plugin should scan for local packages by looking for *.class files instead of *.java so that all the JVM languages can be supported. | Closed | Fixed | Hiram Chirino
FELIX-2701 | Add a {local-packages} macro for automatically expanding local packages in the <Export-Package> instruction | Closed | Fixed | Guillaume Nodet
FELIX-2692 | Support maven type 'wab' for web bundles | Closed | Fixed | Stuart McCulloch
FELIX-2449 | Resource filtering does not use Maven properties specified on the mvn command line via -D command line switches | Closed | Fixed | Stuart McCulloch
FELIX-2435 | <supportedProjectType> on a WAR file will switch the project to generate jar artifacts | Closed | Fixed | Stuart McCulloch
FELIX-2427 | maven site crashes | Closed | Fixed | Stuart McCulloch
FELIX-2346 | mvn bundle:clean removes all, even the existing resources | Closed | Fixed | Stuart McCulloch
FELIX-2215 | Refactor bundlerepository and maven bundle plugin obr data model | Closed | Fixed | Guillaume Nodet
FELIX-2210 | Bogus import entries | Closed | Fixed | Stuart McCulloch
FELIX-2194 | The manifest and bundle goals seem to generate different manifest informations | Closed | Fixed | Stuart McCulloch
FELIX-2176 | Upgrade maven-bundle-plugin to up to date bnd | Closed | Fixed | Richard S. Hall
FELIX-2175 | Improve the Blueprint component to parse / introspect blueprint configuration files and generate OBR service requirements / capabilities accordingly | Closed | Fixed | Guillaume Nodet
FELIX-2173 | Fix inconsistent maven->osgi version conversion between maven-bundle-plugin and DefaultMaven2OsgiConverter | Closed | Fixed | Guillaume Nodet
FELIX-2155 | The maven bundle plugin generates wrong capabilities for packages with directives | Closed | Fixed | Guillaume Nodet
FELIX-2112 | Carriage returns are removed from instructions, but the lines should be trimmed alltogether | Closed | Fixed | Guillaume Nodet
FELIX-2048 | Service-Component property doesn't allow to use wildcards for filenames | Closed | Fixed | Stuart McCulloch
FELIX-1951 | The SchemaObr.xsd in bundleplugin is incomplete | Closed | Fixed | Guillaume Nodet
FELIX-1936 | Create Output Directory for Resource-Only WARs | Closed | Fixed | Stuart McCulloch
FELIX-1820 | Fragment-Host version not converted | Closed | Fixed | Stuart McCulloch
FELIX-1734 | The _donotcopy is ignored | Closed | Fixed | Stuart McCulloch
FELIX-1634 | Maven Bundle Plugin disables transitive dependencies | Closed | Fixed | Stuart McCulloch
FELIX-1571 | Bundle-ClassPath without "." while using maven-bundle-plugin in a war project confuses the plugin | Closed | Fixed | Stuart McCulloch
FELIX-1568 | Goal to transform a maven version into an OSGi version | Closed | Fixed | Guillaume Nodet
FELIX-1552 | Add support for blueprint and spring-dm declarations to import the discovered packages | Closed | Fixed | Guillaume Nodet
FELIX-1539 | generated-classes not included in bundle | Closed | Fixed | Stuart McCulloch
FELIX-1501 | Using a macro in Bundle-Version with the manifest goal causes garbage in the Export-Package and Private-Package headers. | Closed | Fixed | Stuart McCulloch
FELIX-1461 | Corrupted repository.xml when maven is run in parallel | Closed | Fixed | Stuart McCulloch
FELIX-1439 | maven-bundle-plugin resource filtering does not substitute project.organization.* | Closed | Fixed | Stuart McCulloch
FELIX-1262 | [regression] shared archive resources cannot be found | Closed | Fixed | Stuart McCulloch
FELIX-1148 | NPE during bundleall goal | Closed | Fixed | Stuart McCulloch
FELIX-1054 | The deploy and deploy-file plugin should write the computed bundle uri | Closed | Fixed | Clement Escoffier
FELIX-1039 | Inconsistency packaging vs. type | Closed | Fixed | Stuart McCulloch
FELIX-1023 | Category Information not exported to obr file | Closed | Fixed | Stuart McCulloch
FELIX-1021 | Classifier always used even if not explicitly set in the configuration | Closed | Fixed | Stuart McCulloch
FELIX-1017 | Generic types ignored when generating MANIFEST.MF | Closed | Fixed | Stuart McCulloch
FELIX-954 | Import-Package should include packages from optional Maven dependencies with resolution=optional | Closed | Fixed | Unassigned
FELIX-941 | Support singleton & fragment-attachment directive generation | Closed | Fixed | Stuart McCulloch
FELIX-907 | Regression in latest BND code: negated exports are applied to private packages | Closed | Fixed | Peter Kriens
FELIX-899 | Version attribute missing from Import-Package on provided dependencies | Closed | Fixed | Stuart McCulloch
FELIX-843 | Regression: BND 0.0.295 does not augment Ignore-Package with excluded import packages | Closed | Fixed | Peter Kriens
FELIX-831 | bndlib unnecessary modifies valid OSGi Bundle-Version numbers (update to bndlib 0.0.293) | Closed | Fixed | Stuart McCulloch
FELIX-806 | changing the internal configuration of the archive plugin doesn't seem to be possible | Closed | Fixed | Stuart McCulloch
FELIX-782 | Manifest goal ignores version attribute specified in _exportcontents | Closed | Fixed | Stuart McCulloch
FELIX-759 | Version range in import declaration creates a filter using invalid operators (<,>) | Closed | Fixed | Stuart McCulloch
FELIX-699 | manifest goal does not interprete _include instruction correctly | Closed | Fixed | Stuart McCulloch
FELIX-677 | Parser throws error when DynamicImport-Package contains attributes | Closed | Fixed | Stuart McCulloch
FELIX-660 | "Class in different directory than declared" error when bundle classes in a directory other than bundle root | Closed | Fixed | Peter Kriens
FELIX-636 | Bundle-SymbolicName is generated incorrectly | Closed | Fixed | Stuart McCulloch
FELIX-620 | manifest goal of maven-bundle-plugin ignores _include instruction | Closed | Fixed | Stuart McCulloch
FELIX-580 | Allows maven-bunde-plugin to generate a repository file outide a maven repository with absolute url | Closed | Fixed | Stuart McCulloch
FELIX-556 | Filtering mechanims to <Embed-Dependency/> | Closed | Fixed | Stuart McCulloch
FELIX-547 | OBR portion of the plugin balks on singular version range of [1.0.0,1.0.0]. | Closed | Fixed | Stuart McCulloch
FELIX-541 | allow repository.xml to reference to xsl file | Closed | Fixed | Stuart McCulloch
FELIX-526 | Allow a mechanism to give preference to local resources over the ones from embedded jars | Closed | Fixed | Stuart McCulloch
FELIX-517 | Replacement of {maven-dependencies} in Include-Resource and Bundle-ClassPath can strip Windows path separators | Closed | Fixed | Stuart McCulloch
FELIX-505 | maven-bundle-plugin:bundleall modifies dependencies that are already bundles | Closed | Fixed | Stuart McCulloch
FELIX-493 | maven-bundle-plugin bundle:install goal install too many artifact | Closed | Fixed | Stuart McCulloch
FELIX-477 | BND: Versions with fourth section all numbers are truncated | Closed | Fixed | Stuart McCulloch
FELIX-472 | Embed-Dependency, Include-Resource and inline | Closed | Fixed | Stuart McCulloch
FELIX-3772 | maven-bundle-plugin does not scan blueprint in workspace outside default location | Resolved | Fixed | Unassigned
FELIX-3619 | "IOException: Failed to delete repository.xml while trying to rename" in maven-bundle-plugin | Resolved | Fixed | Unassigned
FELIX-3582 | finalName not properly populated in maven-bundle-plugin with buildnumber-maven-plugin | Resolved | Fixed | Unassigned
FELIX-3300 | Avoid warning about superfluous export-package instructions for empty directories | Closed | Fixed | Stuart McCulloch
FELIX-3299 | Fix instable tests in BundlePluginTest | Closed | Fixed | Stuart McCulloch
FELIX-3238 | Unable to filter out classes from identical package in a dependency | Closed | Fixed | Stuart McCulloch
FELIX-3173 | Local OBR install failes when there is a space in the full path | Closed | Fixed | Stuart McCulloch
FELIX-2722 | With an empty organization like this <organization/>, maven bundle plugin raises a NPE. | Closed | Fixed | Stuart McCulloch
FELIX-2657 | Maven-bundle-plugin uses old version of BndLib | Closed | Fixed | Stuart McCulloch
FELIX-2656 | Maven-bundle-plugin identified as not thread-safe in Maven 3.0 | Closed | Fixed | Stuart McCulloch
FELIX-1985 | Error when Include-Resource instruction contains duplicate paths. | Closed | Fixed | Stuart McCulloch
FELIX-1836 | Maven resource filtering support for obr.xml | Closed | Fixed | Stuart McCulloch
FELIX-1290 | Missing dependencies silently ignored | Closed | Fixed | Stuart McCulloch
FELIX-984 | site's <Bundle-Version> documentation is wrong | Closed | Fixed | Stuart McCulloch
FELIX-981 | Warning about split packages even with -split-package directive [maven-bundle-plugin-2.0.0] | Closed | Fixed | Stuart McCulloch
FELIX-912 | Improve default Export-Package / Private-Package settings by scanning the project source | Closed | Fixed | Stuart McCulloch
FELIX-850 | Wrong symbolic name computed when groupId is a single segment string. | Closed | Fixed | Stuart McCulloch
FELIX-807 | conversion of JAR into bundle fails if there are classes is the default name space | Closed | Fixed | Peter Kriens
FELIX-684 | Enable excludeDependencies to check groupId, version, etc. rather than only artifactId | Closed | Fixed | Stuart McCulloch
FELIX-561 | Use same level of Bnd in script generated by bundle:ant as in the bundleplugin itself | Closed | Fixed | Stuart McCulloch
FELIX-560 | bundle:install and bundle:deploy goals check artifact type is "bundle" instead of using the supportedProjectTypes list | Closed | Fixed | Stuart McCulloch
FELIX-554 | allow removing a bundle from a remote OBR | Closed | Fixed | Stuart McCulloch
FELIX-553 | allow cleaning a remote OBR | Closed | Fixed | Stuart McCulloch
FELIX-549 | Import-Package should not include "snapshot" from snapshot dependencies | Closed | Fixed | Stuart McCulloch
FELIX-548 | Import-Package version qualifiers vary depending on dependency scope. | Closed | Fixed | Stuart McCulloch
FELIX-546 | Import-Package version inconsistencies. | Closed | Fixed | Stuart McCulloch
FELIX-545 | Export-Package version inconsistencies. | Closed | Fixed | Stuart McCulloch
FELIX-543 | add switch to prevent classifier being appended to Bundle-Version | Closed | Fixed | Stuart McCulloch
FELIX-531 | Allow the import package scope to be set for the bundleall goal in the maven-bundle-plugin | Closed | Fixed | Stuart McCulloch
FELIX-523 | Update bundleplugin to use BND 0.0.249 | Closed | Fixed | Stuart McCulloch
FELIX-519 | maven-bundle-plugin should issue a WARNING for unsupported packaging types | Closed | Fixed | Stuart McCulloch
FELIX-499 | Enhance "excludeDependencies" configuration parameter to also support comma-separated list of artifactIds | Closed | Fixed | Stuart McCulloch
FELIX-492 | Add support to classifier: enable bunlde:bundle goal to generate classified artifact | Closed | Fixed | Stuart McCulloch
FELIX-491 | Merge the maven-obr-plugin and the bundleplugin into a single plugin | Closed | Fixed | Stuart McCulloch
FELIX-476 | Improve default Export-Package (used when no Export-Package and Private-Package is set) | Closed | Fixed | Stuart McCulloch
FELIX-461 | Ensure manifest goal creates same manifest as bundle goal when project packaging is "bundle" | Closed | Fixed | Stuart McCulloch
FELIX-459 | BND: allow customization of the "uses" clause in the generated Export-Package | Closed | Fixed | Stuart McCulloch
FELIX-458 | BND: -split-package:=merge-first behaves like merge-last | Closed | Fixed | Stuart McCulloch
FELIX-344 | Generate standard maven documentation for the maven-bundle-plugin | Closed | Fixed | Stuart McCulloch
FELIX-247 | Add ant goal to maven-bundle-plugin which creates a build.xml and MANIFEST.MF with bundle headers | Closed | Fixed | Stuart McCulloch
FELIX-498 | Enable javadoc deployment on OBR repository | Closed | Fixed | Stuart McCulloch
FELIX-462 | Support removal of manifest headers added by the bundleplugin | Closed | Fixed | Stuart McCulloch
FELIX-460 | Remove "." from the Bundle-ClassPath when embedding dependencies in a bundle with no local classes | Closed | Fixed | Stuart McCulloch