Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 2CC91200B28 for ; Sun, 26 Jun 2016 23:18:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 2B91E160A5C; Sun, 26 Jun 2016 21:18:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 716AF160A38 for ; Sun, 26 Jun 2016 23:18:53 +0200 (CEST) Received: (qmail 8453 invoked by uid 500); 26 Jun 2016 21:18:52 -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 8434 invoked by uid 99); 26 Jun 2016 21:18:52 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Jun 2016 21:18:52 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 074732C1F5D for ; Sun, 26 Jun 2016 21:18:52 +0000 (UTC) Date: Sun, 26 Jun 2016 21:18:52 +0000 (UTC) From: =?utf-8?Q?Cristiano_Gavi=C3=A3o_=28JIRA=29?= To: dev@felix.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (FELIX-5116) Dump SCR component definitions broken MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Sun, 26 Jun 2016 21:18:54 -0000 [ https://issues.apache.org/jira/browse/FELIX-5116?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1535= 0251#comment-15350251 ]=20 Cristiano Gavi=C3=A3o edited comment on FELIX-5116 at 6/26/16 9:18 PM: ------------------------------------------------------------------ I'm trying this with the 3.1.0-Snapshot but it is not working with the mani= fest goal. The variable bpHeader is always coming as null in my tests: {code} String bpHeader =3D analyzer.getProperty(Analyzer.SERVICE_COMPONENT); Parameters map =3D Processor.parseHeader(bpHeader, null); for (String root : map.keySet()) {code} could someone explain me the reason for try to get this property from analy= zer instead the jar (dot) that was built by bnd as it is doing for metatype= s? {code} // export metatype files from OSGI-INF/metatype Map metatypeDir =3D jar.getDirectories().get(MetaT= ypeService.METATYPE_DOCUMENTS_LOCATION); {code} was (Author: cvgaviao): I'm trying this with the 3.1.0-Snapshot but it is not working with the mani= fest goal. The variable bpHeader is always coming as null in my tests: {code} String bpHeader =3D analyzer.getProperty(Analyzer.SERVICE_COMPONENT); Parameters map =3D Processor.parseHeader(bpHeader, null); for (String root : map.keySet()) {code} could someone explain me the reason for try to get these property from anal= yzer instead the jar (dot) that was built by bnd as it is doing for metatyp= es? {code} // export metatype files from OSGI-INF/metatype Map metatypeDir =3D jar.getDirectories().get(MetaT= ypeService.METATYPE_DOCUMENTS_LOCATION); {code} > Dump SCR component definitions broken > ------------------------------------- > > Key: FELIX-5116 > URL: https://issues.apache.org/jira/browse/FELIX-5116 > Project: Felix > Issue Type: Bug > Components: Maven Bundle Plugin > Affects Versions: maven-bundle-plugin-3.0.0 > Reporter: Stefan Seifert > Assignee: Carsten Ziegeler > Fix For: maven-bundle-plugin-3.1.0 > > Attachments: FELIX-5116.patch > > > the feature to optionally dump SCR component definitions generated by bnd= to the output classes folder introduced in FELIX-3324 is broken ins maven-= bundle-plugin 3.0.0 and 3.0.1 - the associated code is never called when ge= nerating the bundle or manifest. > the attached patch fixes this and enabled the behavior for both manifest = and bundle goals. > this feature is imporant for unit test support in IDEs, e.g. for https://= sling.apache.org/documentation/development/osgi-mock.html -- This message was sent by Atlassian JIRA (v6.3.4#6332)