Hi Francis,

You shouldn't embed transitive dependencies when you create a "library plugin".

First of all, if the library is already an OSGI bundle, you don't need to 
create one, just add it to the linked libraries from the custom Target 
Platform, this is in the 'repository' pom.

If it's not an OSGI bundle, then you need to make it an OSGI by repackaging the 
jar as a "library plugin", that's what you're currently doing.
But, as it becomes an OSGI bundle, it means all its dependencies must also be 
OSGI bundle, so you need to convert them as well, one "library plugin" per 
dependency

Hope this helps,
Pierre-Arnaud



On 22 févr. 2013, at 10:14, Francis ANDRE <[email protected]> 
wrote:

> Hi
> 
> I am adding a new library to the ADS Studio by copy/paste an already existing 
> pom.xml like org.apache.commons.codec/pom.xml but the generated MANIFEST.MF 
> contains a duplicate entry even with the instruction: 
> <_exportcontents>!lib,*</_exportcontents>. The only difference with the new 
> pom.xml is the <Embed-Transitive>true</Embed-Transitive>
> 
> What do I miss for remonving the duplicate entry?
> 
>        <configuration>
>          <manifestLocation>META-INF</manifestLocation>
>          <instructions>
> <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
>            <Embed-Directory>lib</Embed-Directory>
>            <Embed-StripGroup>true</Embed-StripGroup>
>            <Embed-Transitive>true</Embed-Transitive>
>            <_exportcontents>!lib,*</_exportcontents>
>            <Import-Package>!</Import-Package>
>          </instructions>
>        </configuration>
> 
> 
> 
> TIA

Reply via email to