Questions tagged [maven-bundle-plugin]

Maven Bundle Plugin provides a maven plugin that supports creating an OSGi bundle from the contents of the compilation classpath along with its resources and dependencies.

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.

Check the official simple example for a first look at this plugin.

More info

133 questions
1
vote
2 answers

Why don't repositories in the bnd workspace model support transitive dependencies?

According to the Introduction to the bnd workspace model the repositories define and exact set of dependencies and not support transitive dependencies because they tend to make horrible OSGi systems. Can someone provide a more detailed explanation…
Shamann
  • 88
  • 5
1
vote
1 answer

java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel (Apache Felix Maven Bundle Plugin)

I am trying to use the JFXPanel class with the Apache Felix Maven Bundle Plugin. I´ve tried to export the JavaFX classes into the bundle with the tag but I always obtain the NoClassDefFoundError exception: ERROR 10:08:15 Uncaught Exception in…
1
vote
1 answer

Embedding javassist dependency breaks OSGi bundle

I am trying an embedded Felix scenario. While loading a bundle from the embedded OSGi container (Apache Felix), I am getting the following error. org.osgi.framework.BundleException: Unable to resolve test.bundle-attempt [50](R 50.0): missing…
dknight
  • 1,243
  • 10
  • 23
1
vote
2 answers

Build an osgi bundle with inline jar files from maven

I have multiple issues with adding maven jar files to the osgi bundle, but let's start with the most important: I'd like to include all dependent jar files in the osgi bundle. I know that is not ideal and all but bear with me. So my pom.xml lists…
Werner Daehn
  • 577
  • 6
  • 16
1
vote
1 answer

Declare resource included by maven-bundle-plugin as optional

I have a multi-module build creating multiple artifacts with package type "bundle". Some of them create some information in the META-INF directory during compile time, some don't. I tried to define an instruction in the parent pom.xml that adds the…
Yannic Bürgmann
  • 6,301
  • 5
  • 43
  • 77
1
vote
1 answer

Using Maven-bundle-plugin, how can i package dependent jars as .class (extracted jars)

I need maven-bundle-plugin to generate the jar with expanded dependent jars. My plugin configuration in pom.xml looks like: org.apache.felix maven-bundle-plugin
1
vote
1 answer

maven-bundle-plugin:4.1.0:install on jenkins hangs

On Jenkins, maven-bundle-plugin:4.0.0:install (default-install) hangs without any further output. I've checked the logs, tried -X -e option and tried the 4.1.0 version of the plugin. Everything runs fine if I execute Maven locally. It used to run on…
Puce
  • 37,247
  • 13
  • 80
  • 152
1
vote
1 answer

Multiple references with the same name at maven-bundle-plugin

I'm using the maven-bundle-plugin 3.3.0 and OSGI R6. I have the following classes: //Class A @Component (immediate = true, service = {}) public class A{ private static B myB; @Reference (unbind = "unbindB") public static void bindB(B…
raullalves
  • 836
  • 8
  • 20
1
vote
1 answer

How to identify the source of a package version in the Manifest generated by maven-bundle-plugin

I'm creating an OSGI bundle from a Maven module with the use of maven-bundle-plugin. org.apache.felix maven-bundle-plugin
TomVW
  • 1,510
  • 13
  • 26
1
vote
2 answers

OSGi dependency for org.beanio not resolving

I'm trying to OSGify my projects. I'm using Fuse jboss-fuse-6.2.1.redhat-084, and if I look at osgi:headers for the package, I get the red error org.beanio. Import-Package = com.thoughtworks.xstream;version="[1.4,2)", javax.activation, …
djb
  • 1,635
  • 3
  • 26
  • 49
1
vote
1 answer

When using Maven Assembly Plugin - Manifest.MF is not packaged in the correct order

Failed to install artifact: C:\Test\7\config\analyzers\analyzers-7.0.0-13-SNAPSHOT-jar-with-dependencies.jar: org.osgi.framework.BundleException: The bundle file:/C:/Test/7/config/analyzers/analyzers-7.0.0-13-SNAPSHOT-jar-with-dependencies.jar does…
1
vote
2 answers

OpenSAML3 resource not found 'default-config.xml' in OSGi container

I'm trying to upgrade to OpenSAML 3 in an OSGi bundle running on Apache Karaf (4.0.5) using opensaml servicemix bundle (org.apache.servicemix.bundles:org.apache.servicemix.bundles.opensaml:jar:3.2.0_1). A test that parses the SAML is working so I…
Clauds
  • 950
  • 11
  • 24
1
vote
1 answer

Error trying to OSGi wrap (embed) jaxb-xjc with maven-bundle-plugin, bnd,

I'm trying to embed the below jar (among others) in an OSGi bundle. com.sun.xml.bind jaxb-xjc 2.1.13 maven-bundle-plugin with the below settings…
guydog28
  • 1,307
  • 1
  • 11
  • 15
1
vote
2 answers

How to force my OSGI bundle to ignore a conflicted a bundle while resolving dependencies

I am using AEM 5.6.1. I am getting an exception with JAXB my bundle when a jax-b api 2.2.12 manually is installed in console. As JAX-b(2.1.0) is already provided internally in AEM by below bundle. This exception doesn't happen when the 2.2.12 is…
1
vote
1 answer

What's the proper way to generate a manifest with DS and maven-bundle-plugin?

I am using today maven-bundle-plugin to generate the manifest of my projects. Due to others constraints, my modules use the "jar" packaging (i can't use the "bundle" packaging), and currently, my pom look like this :
Jérémie B
  • 10,611
  • 1
  • 26
  • 43
1 2 3
8 9