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
2 answers

Generate metatype descriptions with maven-scr-plugin and OSGI R6 annotations

I am using maven-scr-plugin to generate component and metatype descriptions. I am migrating from org.apache.felix.scr annotations to org.osgi.service.component annotations. Carsten Ziegeler has written an excellent blog on how to do this migration…
Igor P
  • 85
  • 1
  • 5
0
votes
0 answers

Maven release version build taking snapshot dependencies from .m2

I have project A & B at trunk(1.5.0-SNAPSHOT) and branch (1.4.0) B is having dependency in A So, pom.xml for A: com.example project-B [1.0,2.0) <\dependency When…
0
votes
4 answers

How to automate bndtools builds

I am relatively new to the OSGi world and need help to understand how to automate my build process. I got myself familiar with using bndtool in Eclipse and I learnt how to resolve dependencies, run, test, debug and generate a standalone jar. I also…
medalik
  • 139
  • 1
  • 10
0
votes
1 answer

Cannot get CoreNLP models files from JBoss Fuse ESB

I have a problem with CoreNLP using in JBoss Fuse ESB. I installed CoreNLP with it's models on ESB by install wrap:mvn:edu.stanford.nlp/stanford-corenlp/3.6.0 install wrap:mvn:edu.stanford.nlp/stanford-corenlp/3.6.0//models-english Then, when my…
0
votes
1 answer

OSGi maven-bundle-plugin leaving out my package

I've got a CXF web service app in Fuse, and it's got a reference in a camel context xml file to a jar containing my files generated from a WSDL.
djb
  • 1,635
  • 3
  • 26
  • 49
0
votes
0 answers

how to bundle com.sun.tools.jar?

I am developing an eclipse plugin, Where i need to use the tools.jar as an dependency.As we know eclipse does not take normal jar as dependencies. so i tried to change the jar as osgi bundle. But the generated osgi bundle does not contain the…
0
votes
1 answer

How to form the .bnd files while using maven-bundle-plugin?

I'd like to build osgi components and I have been told to use maven-bundle-plugin. I started off by adding this into my pom.xml: org.apache.felix
Schütze
  • 1,044
  • 5
  • 28
  • 48
0
votes
1 answer

How to include source bundles with maven-bundle-plugin

I've repackage some non OSGi maven jars as bundle using the maven-bundle-plugin. Repackaging is based on the Embed-Dependency feature of that bundle, but until today I haven't found a way to include also sources of that bundles. Is there a way to…
nfalco
  • 1
  • 3
0
votes
2 answers

How to add external folder that contains multiple jars into maven build for web application?

I'm using intellij with tomcat server to deploy my spring mvc application, i have another 3-th party jars (10) that i would like to add them to the war file while packing it with maven, is there a way to tell maven -> Include all these jars in this…
USer22999299
  • 5,284
  • 9
  • 46
  • 78
0
votes
0 answers

With maven-bundle-plugin how to put all bnd warnings in one file?

When using Apache Maven with maven-bundle-plugin, how to put all bnd warnings in one file, disable console output? For a big project the number of OSGi-related warnings is big, but they should be analyzed for set of bundles, not one. Putting them…
Paul Verest
  • 60,022
  • 51
  • 208
  • 332
0
votes
2 answers

How to manage several service instances with declarative services?

I'm trying to build a service in OSGi that would read files of a given format. The service interface looks like this: public interface FileReaderService { /** * Reads the given file. * @param filePath Path of the file to read *…
Ben
  • 6,321
  • 9
  • 40
  • 76
0
votes
1 answer

Error running a Maven OSGi project

I'm trying to run a maven OSGi bundle project, but I get: Exception in thread "main" java.lang.NullPointerException: Specified service reference cannot be null. at System.out.println(framework.getBundleContext().getService(reference)); below in…
0
votes
1 answer

OSGi fragment bundle merge of headers

If I create a fragment bundle and add a new header entry under the maven-bundle-plugin instractions. Will that new entry get merged with the host bundle headers list at the runtime?..
Aruna Karunarathna
  • 981
  • 2
  • 23
  • 55
0
votes
1 answer

Don't load/scan class files from a specific jar

I'd like to know how to configure the maven-bundle-plugin (backed by bnd) to completely ignore the classes contained within an embedded jar. Background I'm working in a controlled environment where the environment my code is running on is defined by…
Matt
  • 722
  • 10
  • 20
0
votes
2 answers

Maven building jar: merge duplicate resources from dependencies

I'm getting this problem: I have a project with spring-boot. It works perfectly on eclipse, but I need to generate a jar with dependencies, so I add the maven-assembly-plugin configuration to the pom. Some spring dependencies has in the META-INF a…
1 2 3
8
9