From users-return-18489-archive-asf-public=cust-asf.ponee.io@felix.apache.org Fri Aug 31 17:37:30 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B95E3180675 for ; Fri, 31 Aug 2018 17:37:29 +0200 (CEST) Received: (qmail 88912 invoked by uid 500); 31 Aug 2018 15:37:28 -0000 Mailing-List: contact users-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@felix.apache.org Delivered-To: mailing list users@felix.apache.org Delivered-To: moderator for users@felix.apache.org Received: (qmail 39057 invoked by uid 99); 31 Aug 2018 15:15:06 -0000 X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.173 X-Spam-Level: ** X-Spam-Status: No, score=2.173 tagged_above=-999 required=6.31 tests=[DKIM_ADSP_CUSTOM_MED=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001] autolearn=disabled Date: Fri, 31 Aug 2018 08:15:03 -0700 (MST) From: Subrahmanyam Sistha To: users@felix.apache.org Message-ID: <1535728503858-0.post@n6.nabble.com> Subject: Configure resolution:=optional from maven bundle plugin MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I need help to configure a dependency as optional, Using maven-bundle-plugin:3.4.0, In the Import-packages section, they refereed as resolution:optional org.apache.felix maven-bundle-plugin 3.4.0 true bundle-manifest process-classes manifest * org.junit.*;/resolution=optional/, junit.framework.*;/resolution=optional/ <_nouses>true Expectation is generated OSGI manifest file should contains the resolution:=optional for that library but the changes not reflecting. Expectation : junit.framework;resolution:=optional but in generated manifest file junit.framework Did i miss any configuration to reflect it resolution as optional in the generated manifest file? On investigation Maven-Bundle-Plugin, BundlePlugin.java File, I realized that if the artifact contains the optional true then reflected in the generated manifest file as resolution:=optional junit junit provided true But the previous solution should work according to the BundlePlugin.java source code, Please guide me to proceed further. -- Sent from: http://apache-felix.18485.x6.nabble.com/Apache-Felix-Users-f4833200.html --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org