Hi Udara,

I just tried with
"<Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>" and it
worked fine for me. According to the doc [1] we can embed dependencies with
different scopes as well.

[1] -
http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html

Thanks,

On Tue, Jul 28, 2015 at 11:15 AM, Udara Liyanage <[email protected]> wrote:

> Hi Rajitha,
>
> Thanks for the information. I tried packing all dependencies with *, but
> it did not pack any dependencies.
>
> <configuration>
>           <instructions>
>             <Bundle-SymbolicName>JsonValidatorMediator</Bundle-SymbolicName>
>             <Bundle-Name>JsonValidatorMediator</Bundle-Name>
>             <Export-Package>org.udara.mediation,</Export-Package>
>             <DynamicImport-Package>*</DynamicImport-Package>
>           </instructions>
>          <Embed-Dependency>*</Embed-Dependency>
>         </configuration>
>
>
> On Tue, Jul 28, 2015 at 10:43 AM, Rajith Vitharana <[email protected]>
> wrote:
>
>> Hi Udara,
>>
>> This is ok too, but AFAIK it's better to
>> use <Private-Package>org.foo.myproject.*</Private-Package> as in [1] o that
>> those classes won't get exposed to others(Since only you need these
>> packages). Or either you can
>> use <Embed-Dependency>dependencies</Embed-Dependency> as well. Then those
>> jars will be embedded in the osgi jar
>>
>> [1] -
>> http://felix.apache.org/documentation/subprojects/apache-felix-maven-bundle-plugin-bnd.html
>>
>> Thanks,
>>
>> On Tue, Jul 28, 2015 at 10:36 AM, Udara Liyanage <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I'v created a mediator project in order to write a custom mediator.
>>> However if I am using some dependencies(not available in ESB) how can I
>>> bundle them with the mediator jar. Dependencies were added to the pom, yet
>>> they are not bundled by default.
>>>
>>> Dependencies were bundled when I added them to "export package". Is this
>>> the correct way of packing dependencies, or is there is another way I can
>>> specify which dependencies to be packed.
>>>
>>> <Export-Package>org.udara.mediation, org.mydependency</Export-Package>
>>>
>>> --
>>>
>>> Udara Liyanage
>>> Software Engineer
>>> WSO2, Inc.: http://wso2.com
>>> lean. enterprise. middleware
>>>
>>> web: http://udaraliyanage.wordpress.com
>>> phone: +94 71 443 6897
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> [email protected]
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Rajith Vitharana
>>
>> Software Engineer,
>> WSO2 Inc. : wso2.com
>> Mobile : +94715883223
>> Blog : http://lankavitharana.blogspot.com/
>>
>
>
>
> --
>
> Udara Liyanage
> Software Engineer
> WSO2, Inc.: http://wso2.com
> lean. enterprise. middleware
>
> web: http://udaraliyanage.wordpress.com
> phone: +94 71 443 6897
>



-- 
Rajith Vitharana

Software Engineer,
WSO2 Inc. : wso2.com
Mobile : +94715883223
Blog : http://lankavitharana.blogspot.com/
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to