Hi Gustavo,

The uses attribute is to inform the framework about dependencies of
exports such that the packages may be correctly wired regarding the
package versions. This is known as finding a consistent class space.

To my knowledge, it is not possible to switch generation of the uses
attribute off. Furthermore you should not switch it off, as it is a
required help to the framework.

> it's very verbose.

What is your concern of the attroibute contents to be verbose ? The
contents of the attribute is directed towards the framework having to
handle this. Basically, if it contains to much, you might want to
consider the contents of the export list at large: Do you really have to
export each and every package ? The general answer is probably "no", as
you only should export API but not implementation. Of course your
mileage may vary especially in the case of existing OSGi-agnostic
libraries...

In short: limit the extend of your exports and don't care for the size
of the uses attribute.

Hope this helps.

Regards
Felix

> 
> Thanks,
> 
> Gustavo
> 
> pom:
> 
>             <plugin>
>                 <groupId>org.apache.felix</groupId>
>                 <artifactId>maven-bundle-plugin</artifactId>
>                 <version>1.0.0</version>
>                 <extensions>true</extensions>
>                 <configuration>
>                     <instructions>
>                         <Export-Package>org.apache.cxf.*</Export-Package>
>                         <Bundle-SymbolicName>${pom.artifactId
> }</Bundle-SymbolicName>
>                     </instructions>
>                 </configuration>
>             </plugin>
> 
> generated manifest:
> 
> Export-Package      org.apache.cxf.wsdl;uses:="org.apache.cxf.ws.addressing,
> javax.xml.transform.dom,org.xml.sax,javax.xml.namespace,javax.xml.stream,
> org.apache.cxf.common.util,javax.wsdl.extensions,org.apache.cxf.transport,
> javax.wsdl.factory,org.apache.cxf.common.logging,org.apache.cxf,
> javax.xml.bind.annotation.adapters,org.apache.cxf.service.model,org.w3c.dom,
> javax.wsdl,org.apache.cxf.ws.addressing.wsdl,javax.xml.transform,
> javax.xml.bind.annotation,javax.xml.transform.stream,javax.xml.validation,
> org.apache.cxf.common.i18n,javax.xml.bind,org.apache.cxf.endpoint",
> org.apache.cxf.common.util.factory,
> org.apache.cxf.helpers;uses:="javax.jws,javax.xml.transform.dom,
> javax.xml.namespace,org.xml.sax,javax.jws.soap,org.w3c.dom.ls,javax.wsdl.xml
> ,javax.wsdl.factory,org.apache.cxf.common.logging,javax.xml.parsers,
> org.w3c.dom,javax.wsdl,org.w3c.dom.bootstrap,javax.xml.xpath,
> javax.xml.transform,javax.xml.transform.stream,javax.xml.ws",
> org.apache.cxf.security.transport;uses:=javax.net.ssl,
> org.apache.cxf.ws.addressing;uses:="org.apache.cxf.common.logging,
> javax.xml.bind.annotation,org.apache.cxf.transport,javax.xml.bind,
> org.apache.cxf.message,javax.xml.namespace",org.apache.cxf.resource;uses:="
> org.apache.cxf.common.logging,org.apache.cxf.common.util,
> org.apache.ws.commons.schema.resolver,org.apache.cxf.common.classloader,
> org.xml.sax",
> org.apache.cxf.tools.common;uses:=javax.xml.namespace,
> org.apache.cxf.phase;uses:="javax.xml.stream,org.apache.cxf.common.logging,
> org.apache.cxf.common.util,org.apache.cxf.transport,org.apache.cxf.message,
> org.apache.cxf.interceptor"
> ...


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to