Return-Path: X-Original-To: apmail-felix-dev-archive@www.apache.org Delivered-To: apmail-felix-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9994211678 for ; Thu, 7 Aug 2014 06:43:13 +0000 (UTC) Received: (qmail 64915 invoked by uid 500); 7 Aug 2014 06:43:13 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 64849 invoked by uid 500); 7 Aug 2014 06:43:13 -0000 Mailing-List: contact dev-help@felix.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@felix.apache.org Delivered-To: mailing list dev@felix.apache.org Received: (qmail 64611 invoked by uid 99); 7 Aug 2014 06:43:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Aug 2014 06:43:13 +0000 Date: Thu, 7 Aug 2014 06:43:13 +0000 (UTC) From: "Carsten Ziegeler (JIRA)" To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FELIX-4596) Passing configuration values to the maven-bundle-plugin 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/FELIX-4596?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14088913#comment-14088913 ] Carsten Ziegeler commented on FELIX-4596: ----------------------------------------- I've committed a potential solution in rev which looks for properties starting with "BNDExtension-". If such a project property is found, the prefix is stripped off from the key, the value is either set or appended to an existing value. All properties with that extension are removed. > Passing configuration values to the maven-bundle-plugin > ------------------------------------------------------- > > Key: FELIX-4596 > URL: https://issues.apache.org/jira/browse/FELIX-4596 > Project: Felix > Issue Type: Improvement > Components: Maven Bundle Plugin > Reporter: Carsten Ziegeler > Assignee: Carsten Ziegeler > Fix For: maven-bundle-plugin-2.5.1 > > > It would be nice to have some mechanism to pass configuration values from another plugin to the maven bundle plugin, for example for the maven-scr-plugin as this one calculates (or adds to) the Service-Component and Include-Resource instructions. The current mechanism of passing project properties works only as long as there is no instruction for that value in the project pom (see FELIX-4595). > Right now the mechanism to resolve the instructions is: > 1. project properties > 2. instruction configuration from the pom > A simple solution would be to add > 3. look for special prefixed project properties, like "Override-Service-Component" or "Extend-Service-Component". The project properties are searched for all props starting with this prefix and then override or extend the value. -- This message was sent by Atlassian JIRA (v6.2#6252)