Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to deal with transitive dependencies #1

Open
kwims opened this issue Feb 16, 2021 · 0 comments
Open

How to deal with transitive dependencies #1

kwims opened this issue Feb 16, 2021 · 0 comments

Comments

@kwims
Copy link

kwims commented Feb 16, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant