commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bernd Eckenfels (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (VFS-498) OSGI MANIFEST.MF "Import-Package" should be ";resolution:=optional" for Maven "optional" dependencies
Date Thu, 08 Jan 2015 20:53:37 GMT

    [ https://issues.apache.org/jira/browse/VFS-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14270032#comment-14270032
] 

Bernd Eckenfels commented on VFS-498:
-------------------------------------

Results in the following includes (need to fixup hadoop):

{code}
com.jcraft.jsch;resolution:=optional,
org.apache.commons.collections4.map;version="[4.0,5)";resolution:=optional,

org.apache.commons.compress.archivers;version="[1.9,2)";resolution:=optional,
org.apache.commons.compress.archivers.tar;version="[1.9,2)";resolution:=optional,
org.apache.commons.compress.compressors.bzip2;version="[1.9,2)";resolution:=optional,

org.apache.commons.httpclient;resolution:=optional,
org.apache.commons.httpclient.auth;resolution:=optional,
org.apache.commons.httpclient.methods;resolution:=optional,
org.apache.commons.httpclient.params;resolution:=optional,
org.apache.commons.httpclient.util;resolution:=optional,

org.apache.commons.logging;version="[1.2,2)",

org.apache.commons.net;version="[3.3,4)";resolution:=optional,
org.apache.commons.net.ftp;version="[3.3,4)";resolution:=optional,
org.apache.commons.net.ftp.parser;version="[3.3,4)";resolution:=optional,
org.apache.commons.net.util;version="[3.3,4)";resolution:=optional,

org.apache.hadoop.conf,
org.apache.hadoop.fs,
org.apache.hadoop.fs.permission,

org.apache.jackrabbit.webdav;resolution:=optional,
org.apache.jackrabbit.webdav.client.methods;resolution:=optional,
org.apache.jackrabbit.webdav.property;resolution:=optional,
org.apache.jackrabbit.webdav.version;resolution:=optional,
org.apache.jackrabbit.webdav.xml;resolution:=optional,

org.apache.tools.ant;resolution:=optional,

javax.crypto,
javax.crypto.spec,
javax.net.ssl,
javax.xml.parsers,
org.w3c.dom
{code}

> OSGI MANIFEST.MF "Import-Package" should be ";resolution:=optional" for Maven "optional"
dependencies
> -----------------------------------------------------------------------------------------------------
>
>                 Key: VFS-498
>                 URL: https://issues.apache.org/jira/browse/VFS-498
>             Project: Commons VFS
>          Issue Type: Bug
>    Affects Versions: 2.0
>            Reporter: Michael Schnell
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> In the Maven "pom.xml" there are several "optional" dependencies like "jsch":
> {quote}
>     <dependency>
>       <groupId>com.jcraft</groupId>
>       <artifactId>jsch</artifactId>
>       <optional>true</optional>
>     </dependency>
> {quote}
> In the "Import-Package" section of the MANIFEST.MF it should also be "optional" like
this:
> {quote}
> com.jcraft.jsch;resolution:=optional,
> {quote}
> At the moment all dependencies are always required. This is a problem if you want to
use VFS in an OSGI environment as you have to install ALL dependencies and not only the ones
you really need.
> The mechanism creating the MANIFEST should be adjusted to reflect the optional dependencies
also in the MANIFEST. (Unfortunatelly this could mean to list all packages which should be
optional).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message