On Apr 2, 2013, at 3:11 PM, Ferry Huberts <[email protected]> wrote:
> The workaround for us so far has been 1 of these 2 solutions:
> 1- put the generated 'wrap' bundle in a repository and use it from there
> 


So i guess that's why the eclipse based project "orbit" works just fine, as the 
libraries they provide are 
available in a p2 repository:

http://download.eclipse.org/tools/orbit/downloads/drops/I20130321031113/


regards


-robert





>> 
>> -robert
>> 
>> 
>> 
>> 
>> On Tue, Apr 2, 2013 at 2:52 PM, Tribon Cheng <[email protected]> wrote:
>> 
>>> why not to use bnd?
>>> 
>>> On Tue, Apr 2, 2013 at 8:37 PM, Robert Gruendler <[email protected]
>>>> wrote:
>>> 
>>>> Hi all,
>>>> 
>>>> I'm working on a couple of eclipse plugins which have dependencies to 3rd
>>>> party libraries. Some of those libraries
>>>> are not available as OSGI bundles, so i need to wrap them in OSGI bundles
>>>> manually.
>>>> 
>>>> I've created a maven project [1] which uses the maven-bundle-plugin to
>>>> embed the maven dependencies in the generated
>>>> bundle.
>>>> 
>>>> This works fine when building the project in the commandline, but in
>>>> eclipse i'm experiencing this odd behavior:
>>>> 
>>>> 1. The bundle can be resolved properly
>>>> 2. When importing classes from the 3rd party library embedded in the
>>>> bundle, i'm gettting the following Error in eclipse:
>>>> 
>>>> "Cannot find the class file for org.json.simple.parser.ParseException"
>>>> where ParseException is a class from the 3rd party dependency
>>>> which should be embedded in the bundle generated by the
>>>> maven-bundle-plugin.
>>>> 
>>>> 
>>>> Am i having just a misconfiguration here with my pom, or am i going down
>>>> the wrong track to tackle this bundle?
>>>> 
>>>> 
>>>> regards
>>>> 
>>>> 
>>>> -robert
>>>> 
>>>> 
>>>> [1]
>>>> 
>>> https://github.com/pulse00/osgi-repository/blob/master/simple-json/pom.xml
>>>> 
>>>> 
>>>> 
>>> 
>>> 
>>> --
>>> Contribute to Enterprise Integration
>>> 
>> 
>> 
>> 
> 
> -- 
> Ferry Huberts

Reply via email to