OSGI - handling 3rd party JARs required by a bundle

前端 未结 6 1849
感情败类
感情败类 2020-12-02 12:07

I\'m just getting started with OSGI development and am struggling to understand how best to handle dependant JARs.

i.e. if I\'m creating a bundle the likelyhood is t

6条回答
  •  难免孤独
    2020-12-02 12:59

    Here is an example if you are using the Maven Bundle Plugin.

    Note: This plugin automatically imports packages that your dependencies need. This may or may not be a problem for you. Thankfully, you can suppress the packages you don't really need to import (see below).

        
            
            !org.apache.jackrabbit.test,
            *
        
        
            lib/concurrent-1.3.4.jar,
            lib/jackrabbit-core-2.6.5.jar,
            lib/jackrabbit-spi-2.6.5.jar,
            lib/jackrabbit-spi-commons-2.6.5.jar,
            lib/lucene-core-3.6.0.jar,
            lib/tika-core-1.3.jar
        
        
            .,
            concurrent-1.3.4.jar,
            jackrabbit-core-2.6.5.jar,
            jackrabbit-spi-2.6.5.jar,
            jackrabbit-spi-commons-2.6.5.jar,
            lucene-core-3.6.0.jar,
            tika-core-1.3.jar
        
    

提交回复
热议问题