maven - How to deal with dependencies with "provided" scope in OSGi -


there lots of tutorials, shows how cope dependencies of osgi project , how should converted bundle. after more 1 day research, have still not found how deal dependencies provided scope.

let me give example. using dropbox (dropbox-core-sdk 3.0) , has 2 dependencies (com.google.android , javax.servlet) provided scope. when use techniques such maven-bundle-plugin or bnd, downloads artifacts , transitive dependencies. however, need provided dependencies in order able import project osgi container.

i using maven-bundle-plugin , pom.xml looks like:

<build>     <plugins>         <plugin>             <groupid>org.apache.felix</groupid>             <artifactid>maven-bundle-plugin</artifactid>             <extensions>true</extensions>             <configuration>                 <instructions>                     <bundle-symbolicname>${project.artifactid};singleton:=true</bundle-symbolicname>                     <bundle-version>${project.version}</bundle-version>                     <export-package>*</export-package>                     <embed-transitive>true</embed-transitive>                     <embed-dependency>*</embed-dependency>                 </instructions>             </configuration>         </plugin>     </plugins> </build> 

even if embed-dependency says include everything, dependencies + transitive dependencies in jar. however, want provided-scoped jars in jar.

is there way download dependencies provided scope. if not, how deal situation?

i have defer maven bnd experts out there, don't think can include provided dependencies through maven build. since unlikely using android components outside of bundle, couldn't manually download needed jars , place them in bundle (bundle-classpath)?


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -