[
https://issues.apache.org/jira/browse/VFS-571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Bernd Eckenfels resolved VFS-571.
---------------------------------
Resolution: Duplicate
Actually it can be fixed with the already existing optional attribute for the
dependencies (with fixing the bundle plugin config). Some work on that is
documented in VFS-498, will be fixed for 2.1
> make optional providers optional to osgi
> ----------------------------------------
>
> Key: VFS-571
> URL: https://issues.apache.org/jira/browse/VFS-571
> Project: Commons VFS
> Issue Type: Improvement
> Affects Versions: 2.0
> Reporter: Peter Taylor
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> Only *Major* because it's easy to fix
> Generated osgi metadata in the dist jars do not have packages optional for
> providers that ARE optional.
> If you look in providers.xml you can see some providers shouldn't load based
> on where classes are present. However the osgi manifest requires these
> classes (currently). To make these classes also optional to osgi you need to
> change commons-vfs2-project pom.xml to include the property:
> <properties>
> <!-- existing properties, then... -->
> <commons.osgi.import>com.jcraft.jsch.*;resolution:=optional,
> javax.crypto.*;resolution:=optional,
> org.apache.commons.httpclient.*;resolution:=optional,
> org.apache.commons.net.ftp.*;resolution:=optional,
> org.apache.jackrabbit.webdav.*;resolution:=optional,
> *</commons.osgi.import>
> </properties>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)