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

Maven Bundle Plugin R6 Metatype

I'm trying to use the maven-bundle-plugin to build a bundle using the osgi r6 metatype annotations. I have created a config class @ObjectClassDefinition( name = "Bundle State Validator" ) @interface BundleInstallationConfig { boolean…
Alex Edwards
  • 1,613
  • 3
  • 24
  • 48
1
vote
1 answer

maven-bundle-plugin Creates unexpected Import-Package content

I build all my bundles using maven-bundle-plugin and after some tests with pax:provision I found that it is creating a Import-Package=org.osgi.framework;version="[1.8,0)" on all bundles and at the moment of installing the bundles in Felix then I get…
Joe Almore
  • 4,036
  • 9
  • 52
  • 77
1
vote
1 answer

Maven-bundle-plugin - Export without version

I'm using the "maven-bundle-plugin" to generate the MANIFEST.MF actomaticaly. Now I need to export a bundle without version. I'm introducing this configuration: org.name.package But the plugin introduce…
1
vote
2 answers

Maven/Removing timestamps from build

A little unusual question, probably. I'm building apache-log4j-1.2.17 from sources, and everything works right, but I'd like to modify the process a bit and have no idea how. Namely, I'd like to remove Bnd-LastModified property from manifest file…
Jeor Mattan
  • 475
  • 3
  • 10
1
vote
1 answer

OSGI example fails when maven-bundle-plugin deploys it

I'm working through an example in the book "OSGi and Apache Felix 3.0". During the maven deploy phase it fails with this message: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project…
Dean Schulze
  • 9,633
  • 24
  • 100
  • 165
1
vote
1 answer

OSGi: how to use PuTTY scp with maven-bundle-plugin

I want to deploy my maven compiled OSGi bundle to my remote OSGi repository. I'm on Windows 7 and use the maven-bundle-plugin (2.3.7) from eclipse. The repository is on linux and is accessed over ssh. I have configured in settings.xml to use plink…
Philipp
  • 4,659
  • 9
  • 48
  • 69
1
vote
1 answer

Adding Embeded-Dependency in maven

Actually when i build my project it deploys the bundle to the running OSGI console. Now the bundle is in installed state and shows an red alert that commons-net bundle can not be find. One way of solving this is problem is to install the bundle to…
Naveen
  • 139
  • 2
  • 11
1
vote
1 answer

maven-bundle plugin and pax-exam: MANIFEST.MF does not exist

Following Situation: I am developing an OSGi Application using maven and maven-bundle-plugin. I want to run Unit Tests and discovered Pax-Exam and i find it quit suitable. Here is my parent pom.xml
hueck
  • 193
  • 3
  • 15
1
vote
1 answer

Indexing a JAR using maven-bundle-plugin

I'm trying to build a bundle that has an index (META-INF/INDEX.LIST) using maven-bundle-plugin 2.3.7. My plugin configuration looks like this org.apache.felix maven-bundle-plugin
Philippe Marschall
  • 4,452
  • 1
  • 34
  • 52
1
vote
1 answer

Maven not create .class file in target dir

I am creating osgi bundle by using maven bundle plugin in eclipse.In my application I have non maven jar file on which most of the java classes are depend in my application. my pom.xml file is as follow. ... .... …
ppb
  • 2,299
  • 4
  • 43
  • 75
1
vote
2 answers

OSGi: Apache Felix Maven Bundle Plugin and Javadoc

I'm using the Apache Felix Maven Bundle Plugin to generate the OSGi metadata. org.apache.felix maven-bundle-plugin true You can configure which packages are exported or you can…
Puce
  • 37,247
  • 13
  • 80
  • 152
1
vote
2 answers

ClassCastException using OSGi bundles in a Maven project

I am quite a newbie with OSGi and struggeling with including bundles into my Maven project. I created an API bundle and an implementation bundle using the mave-bundle-plugin. In my major project (a Maven project), I tried to get the service of the…
user1488793
  • 284
  • 2
  • 14
0
votes
0 answers

Maven Bundle Services not Injected

I'm facing a problem while trying to inject some OSGi Services into a bundle. Some bundles are failing with the following error: 2023-03-14T09:38:12,149 | ERROR | BlueprintContainerImpl         | org.apache.aries.blueprint.core | Unable to start…
0
votes
0 answers

Spring Boot + OSGI : NoClassDefFoundError on jackson databind

I fail to configure a project based on Spring Boot, extended with OSGI, and using Jackson in a bundle by using import/export package system (I would like to avoid to embed the lib). I started from this project. Maven modules: a Spring Boot module,…
0
votes
0 answers

How to build one deployable Java app from OSGI Maven bundles?

I have a parent Maven OSGI project and several children projects, with one child project being the Launcher. The parent pom.xml has pom while children pom.xml(s) bundle and I use Maven Bundle Plugin. With Mvn clean install, MANIFEST.MF and jar files…
1288Meow
  • 319
  • 2
  • 7
1 2 3
8 9