Are there plans to support "Require-Bundle" in maven-bundle-plugin, even if its not the recommended OSGi way. There are situations where it makes sense to use "Require-Bundle", for example to merge split packages.
Plans to support "Require-Bundle" in maven-bundle-plugin
2.7k Views Asked by user1654885 At
2
There are 2 best solutions below
0
Neil Bartlett
On
Require-Bundle is supported by the bundle-plugin, just like all OSGi headers plus any other arbitrary headers that you want to use. Just write them in the XML:
<Require-Bundle>
org.example.foo; bundle-version=3.0,
org.example.bar; bundle-version=1.0
</Require-Bundle>
<My-Extension-Header>
blah blah blah
</My-Extension-Header>
Related Questions in MAVEN
- Accessing Secret Variables in Classic Pipelines through Java app in Azure DevOps
- JavaFX build generating a blank gui with primary view and secondary view buttons
- Maven (Java) does not build dependencies into a compiled file
- java.lang.ClassNotFoundException: javax.servlet.jsp.tagext.TagLibraryValidator in Spring-boot jsp application
- I am trying to use h2 in-memory db from my spring boot application, my spring boot version is 3.1.10, but its not connecting to h2 properly
- BeanCreationException when deploying Spring Boot app
- How to run Parallel tests by groups using Maven and TestNG?
- Get control flow information with JaCoCo
- Failed to instantiate [com.docusign.esign.client.ApiClient]
- Gradle - Groovy vs Gradle - Kotlin vs Maven for Java Spring Boot web application project on IntelliJ
- Intelij ultimate and spring boot giving me errors
- Using Eclipse Maven project, import new version of a class from a jar file created from another Maven project
- Messing up with conflict between spring jcl and commons-logging.jar
- Run java program
- How to add a Maven project to an Ubuntu image in Docker
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 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
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)
Popular # Hahtags
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?
You can specify Require-Bundle MANIFEST header in the instructions. E.g.:
However, version range of the required bundle will not be appended automatically, so you have to specify it manually if that is necessary.