spring-boot-osgi-demo
spring-boot-osgi-demo copied to clipboard
How to deal with transitive dependencies
Hi, I have a issue with transitive dependencies. can you please help?
So I have a project A that depends on project B that depends on ch.qos.logback.core
in project A I have a pom.xml as follows
<instructions>
<Bundle-SymbolicName>
${pom.groupId}.${pom.artifactId}
</Bundle-SymbolicName>
<Bundle-Name>${pom.name}</Bundle-Name>
<Bundle-Version>${pom.version}</Bundle-Version>
<Bundle-Activator>
xxx.BundleActivatorIpml
</Bundle-Activator>
<Export-Package>
de.markant.pam.parser
</Export-Package>
<Private-Package>xxx.*</Private-Package>
<Embed-Dependency>*;scope=compile|runtime;inline=true</Embed-Dependency>
<Embed-Tansitive>true</Embed-Tansitive>
<Import-Package>*</Import-Package>
</instructions>
when I start the bundle in kafka, i get the following error
karaf@root()> bundle:start 83
Error executing command: Error executing command on bundles:
Error starting bundle 83: Unable to resolve xxx-playground [83](R 83.0): missing requirement [xxx-playground [83](R 83.0)] osgi.wiring.package; (&(osgi.wiring.package=ch.qos.logback.core)(version>=1.2.0)(!(version>=2.0.0))) Unresolved requirements: [[xxx-playground [83](R 83.0)] osgi.wiring.package; (&(osgi.wiring.package=ch.qos.logback.core)(version>=1.2.0)(!(version>=2.0.0)))]
Thank you