I am moving from maven-bundle-plugin which provided the "convenient" configuration using Embed-Dependency, but it appears i need to specify my Embed Dependency "manually" in bnd format when using the bnd-maven-plugin. I added the same bundle headers from my old package, but it doesn't seem to be including the actual dependency's jar file. Does someone have a quick/concise how-to do this?
How to embed a maven dependency with bnd-maven-plugin
4.2k views Asked by empire29 At
1
There are 1 answers
Related Questions in OSGI
- Singleton to OSGi Declarative Services: Seeking Guidance
- How to use ExecutorService in Kubernetes PODs
- Liferay DXP Service builder @BeanReference field is null
- cant start bundle on apache felix
- Java OSGi implementation for the project
- How to update the resource property using the valuemap in the Sling servlet?
- Drools 8 OSGi support
- OSGi: missing requirement osgi.wiring.package with local bundle
- How to find correct AEM constant class names?
- KieServices are not injecting with guice
- Unknown OSGi execution environment: 'JavaSE-21'
- Java on AWS/EKS fails with resolving correct version of org.osgi.framework.launch.FrameworkFactory
- osgi.extender; (osgi.extender=osgi.serviceloader.registrar) in Jenkins
- How can i get the service ref after i changed org.apache.felix.scr.annotations to org.osgi.service.component.annotations
- Install feature webconsole in karaf 4.3.10 error needs osgi.http (not sure which jar package)
Related Questions in BLUEPRINT-OSGI
- Using Camel JCachePolicy with Caffeine in OSGi Blueprint
- Configurable filter for OSGi service reference in blueprint
- Feature fails to start using Karaf 4.2.16 due to unresolved dependencies
- How to install camel-milo component in Apache Karaf 4.4.3?
- Intelliji IDEA cannot run single test unless all tests are built successfully
- Camel3-Blueprint-Testing fails with error 'Caused by: java.lang.IllegalStateException: zip file closed'
- Blueprint container error on OSGi bundle start up
- Apache Camel Karaf Mandatory header ignored
- blueprint-maven-plugin JDK compatibility
- Find a way to call Blueprint Container for prototype bean
- Set the bundle version and start level when deploying camel route as XML in deploy folder of ServiceMix
- OSGi - NoClassDefFoundError after bundle update
- generating big files using apache camel and freemarker
- How can I use the CXF HttpConduitFeature for DOSGi?
- Procedure to add features to OpenDaylight application
Related Questions in BND
- Usage of "slf4j.api" in an OSGi bundle requires extender "osgi.serviceloader.processor" after update to 2.x
- google-maps-services embed dependency in aem
- Are JPMS modifiers `static` and `transitive` incompatible?
- Eclipse RCP with Gradle - bnd instruction Import-Package not working for org.eclipse.e4.core.di
- Multi platform "test.bndrun" file: define a required bundle (`-runrequires`) specifically for macOS
- migrating osgi from bndlib to osgi r6 declrative services
- Trying to build BND tool, getting gradle plugin error
- How to find an OSGi bundle providing a specific capability (JavaEL 5.0)
- Generate jar with Bundle-SymbolicName value in a Liferay module
- How to add dependency independent of another bundle in AEM
- OSGI compliant jars for Google pubsub , storage and firestore - always throws classnot found exception when all three services run together
- Non annotation type for activation object with descriptor
- How to convert Elasticsearch Java API Client into OSGI bundle?
- Configuring pax-logging in OSGi environment built with Gradle and BND
- Can not run OSGi tests requiring "org.eclipse.pde.core" because of icu4j
Related Questions in BNDTOOLS
- google-maps-services embed dependency in aem
- Eclipse RCP with Gradle - bnd instruction Import-Package not working for org.eclipse.e4.core.di
- Multi platform "test.bndrun" file: define a required bundle (`-runrequires`) specifically for macOS
- Add a random value for a key in "-runproperties" in a "*.bndrun" file
- migrating osgi from bndlib to osgi r6 declrative services
- bndtools debug bundle in equinox GUI
- Trying to build BND tool, getting gradle plugin error
- bndtools pom repository local path
- Is there any way, a software can access hidden files in Ubuntu, without renaming files?
- OSGi: Recalculate the Import-Package of a JAR programmatically
- Getting "Error: Could not find or load main class aQute.launcher.Launcher" in Eclipse IDE even though it works in command line
- How to resolve org.slf4j with bndtools
- How to add "Embedded-Artifacts" section to Manifest using gradle bnd (bndtools)?
- is bndtools a future bundle tools for OSGI bundle?
- Injecting singleton OSGi Declarative Service in Eclipse RCP
Related Questions in MAVEN-BUNDLE-PLUGIN
- What mean packaging:bundle mean inside the POM?
- How to convert Elasticsearch Java API Client into OSGI bundle?
- Getting the Maven build failure at JaxRS dependency updated the dependency and still getting the issue
- How to build one deployable Java app from OSGI Maven bundles?
- ResolutionException: Unable to resolve root: missing requirement [root] filter:="(osgi.wiring.package=javax.jws)(version>=1.1.0)(!(version>=2.0.0))
- Maven enforcer plugin very slow - omitted, kept explanation
- Is there a way to modify a jar with a wrong manifest using the maven-bundle-plugin?
- Maven Bundle Plugin adding Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=9.0))"
- Fatal error compiling: invalid flag: --release java 8
- Force maven-bundle-plugin to use a specific osgi.ee Require-Capability
- Why don't repositories in the bnd workspace model support transitive dependencies?
- Maven build works on Linux but fails on Windows
- java.lang.NoClassDefFoundError: javafx/embed/swing/JFXPanel (Apache Felix Maven Bundle Plugin)
- Using a 3rd party dependency within a Maven OSGi bundle
- How to embed a maven dependency with bnd-maven-plugin
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
bnd has an instruction
-includeresourcedefined here https://bnd.bndtools.org/instructions/includeresource.html:Here's an example:
This should have visibility into all the dependencies in the classpath used to build the artifact and matches on the file name of the associated files.
[Update with BJ's comment] The
lib:=truewill automatically add the jar to the bundle's Bundle-ClassPath header in a merge safe way (i.e. by making sure it plays nice with existing content or non-existent value).