Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9625E10C2B for ; Tue, 4 Feb 2014 04:32:23 +0000 (UTC) Received: (qmail 17083 invoked by uid 500); 4 Feb 2014 04:32:19 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 16726 invoked by uid 500); 4 Feb 2014 04:32:14 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 16698 invoked by uid 99); 4 Feb 2014 04:32:10 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Feb 2014 04:32:10 +0000 Date: Tue, 4 Feb 2014 04:32:09 +0000 (UTC) From: "Bernd Eckenfels (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VFS-498) OSGI MANIFEST.MF "Import-Package" should be ";resolution:=optional" for Maven "optional" dependencies MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-498?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13890369#comment-13890369 ] Bernd Eckenfels commented on VFS-498: ------------------------------------- I found the reference, it is supposed to be implemented in maven-bundle-plugin:2.3.4 as of https://issues.apache.org/jira/browse/FELIX-2809 From that source it seems to not need an option. Any idea why it is not working? > 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} > > com.jcraft > jsch > true > > {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. This could be done for example by using "maven-bundle-plugin" to automate the generation. -- This message was sent by Atlassian JIRA (v6.1.5#6160)