Hi all,

i don't know, if this is the right place for my question. Please let me
know if i am wrong here.

I am trying to bundlize all my transitive dependencies in my project
with maven-bundle-plugin and then run it in felix environment.
The problem i'm facing is: no transitive dependencies are resolved, if i
don't add this dependencies to projects pom. The bundle is installed but
i can't start it, because  Missing Constraint: Import-Package:
javax.jms; version="0.0.0" (just one of the un resolved packages). I can
solve the proble bei adding javax.jms dependeny to the pom. Should i add
ALL transitive dependencies to my pom? I am sure there is a better way
to do this, but i don't know how :(  The configuration to bundle plugin
looks like this...

                <plugin>
                   <groupId>org.apache.felix</groupId>
                                                                                
        <artifactId>maven-bundle-plugin</artifactId>
                        <extensions>true</extensions>
                        <configuration>
                                <instructions>
                                <Export-Package>                                
         org.ontoware.rdf2go.impl ,
                                       org.ontoware.rdf2go.impl.jena26 ,
                                   org.ontoware.rdf2go.impl.jena26.osgi,
                                </Export-Package>

<Bundle-Activator>org.ontoware.rdf2go.impl.jena26.osgi.Activator</Bundle-Activator>
                                                
<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
                                                
<Embed-Transitive>true</Embed-Transitive>

                                        </instructions>

                                </configuration>
                        </plugin>




Thanks in advance
-- 
Gebeyehu Dagne <[email protected]>

Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to