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

Avoid copying some packages to OSGi Bundle

I want to exclude some packages from copying when creating an OSGi bundle using maven bundle plugin. I used !package name in the export section. But since I'm using @openejb-core-${openejb.version}.jar!/**, in the include-resource section that…
0
votes
1 answer

Reduce number of Import packages in an OSGi Bundle

Inside a OSGi bundle I'm trying to remove the *;resolution=optional and specify the specific imports. When I check at the run time imports are like follows org.apache.catalina.valves; version="8.0.20", org.apache.catalina.util;…
0
votes
1 answer

Pack ServletContainerInitializers from different bundles to a single OSGi bundle

I'm creating an OSGi bundle which consist of following…
0
votes
2 answers

src is used instead of target for bundling package

When I run command "mvn package" on my project, resource files like persistence.xml, persistence.xml.dev, persistence.xml.qa etc..from src/main/resources/META-INF are packed in the bundle. I need help to make mvn-bundle-plugin to look at target…
auhuman
  • 962
  • 2
  • 13
  • 34
0
votes
0 answers

Package uses conflict org.springframework.orm.jpa.vendor

In my project, I am getting package uses conflict with spring bundles. I used the techniques given in this link http://njbartlett.name/2011/09/02/uses-constraints.html I am getting package uses conflict for…
user1623627
  • 117
  • 1
  • 3
  • 12
0
votes
2 answers

How to fix dependency version conflicts?

I have 2 different modules called A and B. I have also another module called C. A uses C version 1.0 B uses C version 2.0 The problem is since C 2.0 is not backward-compatible even though the groupId and artifactId values are same for C 1.0 and C…
0
votes
1 answer

from Maven2 to OSGI bundle

I want to convert a Maven2 project in a OSGI bundle. I am trying to use maven-bundle-plugin that should create the manifest according to maven dependencies. The problem is that i can't manage to let it work. When I install and run the bundle…
0
votes
2 answers

Eclipse Juno doesn't "see" bundle created with apache felix maven-bundle-plugin

Here's my problem: I'm currently developing simple RAP application in Eclipse Juno. I was in need to use some external libraries so I created a bundle with felix maven-bundle-plugin where I had stored some libraries. After that I copied this bundle…
0
votes
2 answers

Preventing maven bundle from running no save in eclipse 4.2

In my eclipse workspace, saving a file in a java editor makes m2e run defaultGoal (install) on the project, which involves rewritting the MANIFEST.MF file. Because I am using another plugin that has no m2e connector (maven-scr-plugin), this makes my…
Miquel
  • 15,405
  • 8
  • 54
  • 87
0
votes
1 answer

osgi with eclipse maven and maven-bundle-plugin

I'm new to osgi and really confused about how it all fits together. I want to create 3 bundles, an api bundle that defines an interface, a impl bundle that provides an implementation and another bundle that uses the implemenation using maven and the…
glasspill
  • 1,290
  • 4
  • 21
  • 36
0
votes
1 answer

How can I make bundle in my project?

I Build a multi module project having name ThreadPool-Maven ThreadPool-Maven contains two projects ThreadPool-Implementation and ThreadPool-Evaluator. Both are interdependent, ThreadPool-Evaluator project are dependendent on…
devsda
  • 4,112
  • 9
  • 50
  • 87
0
votes
1 answer

How to get a single maven dependency's jar file copied to the dest dir?

I want to copy com.X.Y.jar to the desination directory com/X/Z/target/distribution-0.0.1-SNAPSHOT/bundle. The contents of this Jar file is used at runtime. In com.X.Z's pom file, I have the following dependency configuration
user1991839
  • 1,993
  • 2
  • 14
  • 11
-2
votes
2 answers

Google maps classes not showing in Import-Package in MANIFEST.MF

I'm using the maven-bundle-plugin and trying to bundle Google maps dependency. org.apache.felix maven-bundle-plugin true
Anthony
  • 33,838
  • 42
  • 169
  • 278
1 2 3
8
9