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
0
votes
1 answer

Maven enforcer plugin very slow - omitted, kept explanation

I updated the version of few dependencies in my project, the build got slow and it waits around 5+ minutes at the enforcer plugin. I tried to compare debug logs of previous builds which used to happen in 3 mins, compared to this which is taking 8+…
0
votes
1 answer

Is there a way to modify a jar with a wrong manifest using the maven-bundle-plugin?

I have an OSGI project, one of the dependencies is a jar with a wrong manifest value (wrong Bundle-NativeCode), so I get a null pointer exception when trying to install the plugin I build. Is there a way for me to modify the manifest of that…
Kreender
  • 284
  • 1
  • 6
  • 17
0
votes
1 answer

Maven build works on Linux but fails on Windows

I have a maven project which builds successfully on Linux, but fails on Windows. Its the same Java version(1.7), Maven version(3.5.2). Only difference is the OS. This is the error which I get in Windows: [ERROR] Error building bundle…
Lalithesh
  • 164
  • 1
  • 2
  • 6
0
votes
3 answers

AEM-6.3 build failing with Java-1.8.0_211 and Maven-3.3.9

I created project using archetype-12 for AEM-6.3 referring here. Also tried to compile projects from github like aem-simple Getting following errors, [INFO] --- maven-bundle-plugin:3.3.0:bundle (default-bundle) @ AEMMaven12.core --- [WARNING] Error…
Dileepa
  • 1,019
  • 1
  • 15
  • 40
0
votes
1 answer

Embedding/Including generated sources with maven-bundle-plugin

I'm using OSGi (Fuse 7 / Karaf 4) I was previously generating WSDL classes in my shared libs, and exporting them to service layer. I'm trying to shift now to exporting the WSDL itself, and generating classes at the service layer. The service classes…
djb
  • 1,635
  • 3
  • 26
  • 49
0
votes
1 answer

How to merge Project folder with project folder generated by war

I am trying to build a war file but some files are left out, paticularlly files inside the same directory as src. The Project structure is: MyProject src project web-servlet.xml When I generate the war file and extract it, it gives…
Ericode
  • 136
  • 3
  • 15
0
votes
0 answers

wrapping JARs with BND and/or maven-bundle-plugin

I am wrapping a bunch of JARs into a single OSGi bundle. There are oodles of packages, so I tries using org.apache.myfaces.* syntax. But then maven-bundle-plugin/bnd complains Exporting an empty package 'org.apache.myfaces.component'. Is there a…
wilx
  • 17,697
  • 6
  • 59
  • 114
0
votes
1 answer

Configure resolution:=optional from maven bundle plugin

I need help to configure a dependency as optional, Using maven-bundle-plugin:3.4.0, In the Import-packages section, they refereed as resolution:optional org.apache.felix
0
votes
1 answer

WSO2 and creating deployable archive takes old properties from Maven

I have another problem with WSO2 ESB. I have created some Maven project. The project is included into Java Library Project from WSO2. In library project I set maven-bundle-plugin set in pom.xml. It creates MANIFEST correctly via Maven build, but…
mariusz
  • 23
  • 6
0
votes
1 answer

OSGi Import Package issues

I'm developing a bundle with some third party dependencies. The bundle refers the core and connection functionalities from two different jars of that third-party. Then i do the Import-Package with maven-bundle-plugin i could only consume a single…
0
votes
1 answer

felix maven-bundle-plugin error (&(osgi.wiring.package=com.a.b.c)(version>=xx.0.0)(!(version>=yy.0.0)

i use Apache Felix to implement osgi bundle and use it as embedded Felix framework to call boundle here is my maven plugin to build MANIFEST.MF : org.apache.felix
Ahmad R. Nazemi
  • 775
  • 10
  • 26
0
votes
1 answer

maven-bundle-plugin duplicate bundle with different version

Plugin version: 3.3.0 I am wondering how maven-bundle-plugin resolves the version from duplicated Export-Packages bundle, the following is from mvn -X debug output and seems like the plugin is using the version from the first bundle…
yswai1986
  • 263
  • 2
  • 8
0
votes
1 answer

Best practices when dealing with OSGI & 3rd party libraries

I'm struggling to find a reasonable approach to manage a big enough code base, more specifically, how to manage import statements for any given bundle. The problem is, if you have a bundle with has his own dependencies to other 3rd party libraries,…
isco
  • 350
  • 4
  • 15
0
votes
1 answer

Import package can not be resolved in maven bundle

I am getting problem when tried to start bundle. Project structure: --Main project - sub project 1 - sub project 2 src/main/java/util - sub project 3 - bundle project 1 - bundle project 2 - bundle project…
Hkachhia
  • 4,463
  • 6
  • 41
  • 76
0
votes
1 answer

OSGi with Maven bundle plugin not loading library

I´m working on a big application and we use Mavem bundle plug in in our proxy to make it small! I´m having problems importing some needed library for handling some kind of images (jpeg2000 and jbig2) needed by PDFbox. Here is my pom (part of…
PcS
  • 38
  • 8
1 2 3
8 9