[ 
https://issues.apache.org/jira/browse/VFS-571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Peter Taylor updated VFS-571:
-----------------------------
    Description: 
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>

  was:
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 pox.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>


> 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)

Reply via email to