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 97249200C39 for ; Thu, 16 Mar 2017 17:39:31 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 942B7160B78; Thu, 16 Mar 2017 16:39:31 +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 BC412160B72 for ; Thu, 16 Mar 2017 17:39:30 +0100 (CET) Received: (qmail 62500 invoked by uid 500); 16 Mar 2017 16:39:25 -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 Received: (qmail 62488 invoked by uid 99); 16 Mar 2017 16:39:24 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Mar 2017 16:39:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 871EF1A0771 for ; Thu, 16 Mar 2017 16:39:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.198 X-Spam-Level: * X-Spam-Status: No, score=1.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id H_tymbicfO0w for ; Thu, 16 Mar 2017 16:39:23 +0000 (UTC) Received: from mail-pf0-f195.google.com (mail-pf0-f195.google.com [209.85.192.195]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id 46ABA5F473 for ; Thu, 16 Mar 2017 16:39:22 +0000 (UTC) Received: by mail-pf0-f195.google.com with SMTP id x63so6216560pfx.2 for ; Thu, 16 Mar 2017 09:39:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:content-transfer-encoding:mime-version:subject:date:references :to:in-reply-to:message-id; bh=WDueIC7Ha1o4JVVLG334hnHYhtxu++4gG06QKJ00JJ4=; b=V86YLHqMyXvknielpXO3nd8AXgUQkOuFtnF1/MAACAidOOopSzMp4ZmG8BoRDHYk17 zJ0PJzZKK2e2DUzmzNu/9X0uacmU1w3eeStFRADZpvC3L7L9FSL+2eClVWwHFItxC82f ymzXruD87Nqc57tJv5YCcy8rN3UOx7fQwG6a+IkXM36bXthSPMedp9vmlrkIkyCTmtsI P5r8XQms+DDCfsB2QvJvLLdSndr/H0m4hVI1M76VozovAkp0agI+S2StRlyNugkGaWk1 oPjQ86YinGpmrcPhc0syBY6iXer6s31c2GkGB7NyoAEC3pRVviKU2qSORaWbn5mWGPyF 0GiA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:content-transfer-encoding:mime-version :subject:date:references:to:in-reply-to:message-id; bh=WDueIC7Ha1o4JVVLG334hnHYhtxu++4gG06QKJ00JJ4=; b=heHFHRkq3WRJ04sBoHYwkYbzj3QNjVEyR8nQZF1dTbUm8f0Y3XHhQo8GAOBiJCjrGM I6dlgBywxj/eo3iuawZovcONT/fsKyJshgIjwofvVjwo/Bo/XUiaX+pjVtbqYTVvM8hy oAg1c2G4VoNyp9gC0EE2NIEbe6NYpCYsQFXFFvt8YKNfxI064ZDQc9s0fVKGOCmlxorJ CbhPAxkC18TgF+Be9LQg8QxPo3PttXQsasb3CnMYnw5q/+Az3YynfhU+ZI6HA4ya9ZFv Qgi2WjFb/YBFS2AQwU/ksGTKNJ42FpLfYl9u5CBHy3lNOIYsvEEKI+vHz8Y3C5E0ez34 4U6g== X-Gm-Message-State: AFeK/H3EDuaNiLl5REthW1v+PqXM8wnfswIIL6jzfUL1eM0iD/CYfngmWg6qBHf+oXIp+Q== X-Received: by 10.99.39.71 with SMTP id n68mr10783796pgn.85.1489681972821; Thu, 16 Mar 2017 09:32:52 -0700 (PDT) Received: from macbook-pro-2.domain (184-100-160-12.ptld.qwest.net. [184.100.160.12]) by smtp.gmail.com with ESMTPSA id 132sm11639608pgf.27.2017.03.16.09.32.51 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 16 Mar 2017 09:32:52 -0700 (PDT) From: David Jencks Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: Using OSGi DS and old Apache Felix SCR together Date: Thu, 16 Mar 2017 09:32:50 -0700 References: <22AB12EE-DDB7-4EB5-A9DD-6B400AF2CB6E@teeuwen.be> <89a34cfbfd994f0cbdac647b200f7842@mailx01.intern.pro-vision.de> To: users@felix.apache.org In-Reply-To: <89a34cfbfd994f0cbdac647b200f7842@mailx01.intern.pro-vision.de> Message-Id: <4C5848C1-EE84-4D3D-B5EB-2E1D3AA37599@gmail.com> X-Mailer: Apple Mail (2.3259) archived-at: Thu, 16 Mar 2017 16:39:31 -0000 I think the bnd support is for the proprietary bnd annotations, not the = proprietary felix annotations. AFAIR bnd never supported the proprietary = felix scr annotations. I also think that bnd (and thus the maven-bundle-plugin) runs and = generates the xml after the unit tests run, so that you will never be = able to get the xml=E2=80=99s in time for unit tests. I don=E2=80=99t = know if integration tests (failsafe plugin) run before or after the = bundle is assembled, but I think after, so perhaps that would be worth = looking into. david jencks > On Mar 16, 2017, at 2:09 AM, Stefan Seifert = wrote: >=20 > you should not use the maven-scr-plugin at all in this case - there is = a bnd plugin for the old felix SCR annotations that does the same job. > so use only maven-bundle-plugin and add an instruction > = <_plugin>org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin;destdir=3D$= {project.build.outputDirectory} >=20 > for a full example see [1] >=20 > on the long run you should migrate to the OSGi annotations and remove = the felix scr annotations. >=20 > stefan >=20 > [1] = https://github.com/wcm-io/wcm-io-tooling/blob/develop/maven/aem-global-par= ent/pom.xml >=20 >=20 >> -----Original Message----- >> From: Roy Teeuwen [mailto:roy@teeuwen.be] >> Sent: Thursday, March 16, 2017 9:03 AM >> To: users@felix.apache.org >> Subject: Using OSGi DS and old Apache Felix SCR together >>=20 >> Hey all, >>=20 >> I am running in a problem when trying to use OSGi DS annotations and = Apache >> Felix annotations together. I have unit tests that depend on the = service >> xml's being present (I am using the Apache Sling osgi-mock to run = unit >> tests), but the problem that I am facing is that when the = maven-bundle- >> plugin:manifest phase has been executed, the maven-scr-plugin deletes = the >> maven-bundle-plugin xml's again created by the maven-bundle manifest = phase, >> is there any way to avoid this and make it that they are merged = togheter? >> All xmls are present in the JAR file when everything is compiled so = in the >> end it works out, but I need them for the unit tests too. >>=20 >> The configuration I am currently using at the moment: >>=20 >> >> org.apache.felix >> maven-bundle-plugin >> 3.2.0 >> >> >> ... >> <_dsannotations>* >> <_metatypeannotations>* >> >> true >> >> >> >> >> scr-metadata >> >> manifest >> >> >> true >> >> >> >> >> >> org.apache.felix >> maven-scr-plugin >> 1.24.0 >> >> >> generate-scr-reportDescriptor >> >> scr >> >> >> >> >>=20 >> Greetings, >> Roy >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org >> For additional commands, e-mail: users-help@felix.apache.org >>=20 >=20 >=20 >=20 > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org > For additional commands, e-mail: users-help@felix.apache.org >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@felix.apache.org For additional commands, e-mail: users-help@felix.apache.org