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 DF2E118C16 for ; Sun, 11 Oct 2015 15:10:05 +0000 (UTC) Received: (qmail 40249 invoked by uid 500); 11 Oct 2015 15:10:05 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 40180 invoked by uid 500); 11 Oct 2015 15:10:05 -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 40169 invoked by uid 99); 11 Oct 2015 15:10:05 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 11 Oct 2015 15:10:05 +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 0274F1A0935 for ; Sun, 11 Oct 2015 15:10:05 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.999 X-Spam-Level: ** X-Spam-Status: No, score=2.999 tagged_above=-999 required=6.31 tests=[HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id 968PmTwHnzoH for ; Sun, 11 Oct 2015 15:09:57 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id DD603204DF for ; Sun, 11 Oct 2015 15:09:56 +0000 (UTC) Received: from [172.16.77.28] ([46.128.255.147]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0Lxgt9-1ae1I51yjj-017FCO for ; Sun, 11 Oct 2015 17:09:50 +0200 From: Konrad Windszus Content-Type: multipart/alternative; boundary="Apple-Mail=_C6DDDA4F-789B-4C50-9A61-EDC6AB877E29" Message-Id: <0AA98F42-8CC8-4CBD-AF7D-1E224189CD28@gmx.de> Mime-Version: 1.0 (Mac OS X Mail 9.0 \(3094\)) Subject: Re: Future of maven-scr-plugin Date: Sun, 11 Oct 2015 17:09:49 +0200 References: <0AB360ED-DA1E-41AA-BE6B-34F09630D2C8@gmx.de> <561545D8.4040205@apache.org> <85AFF1DC-08BF-456B-BCF1-A455A0B13769@gmx.de> <3FD4CEEB-5DEC-4D2E-A3D6-1072DE3FF178@gmx.de> <5617EE0A.5070406@apache.org> <15E8E55F-777D-4706-9152-F018B14D037B@gmx.de> To: dev@felix.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3094) X-Provags-ID: V03:K0:oAfq8xQlTMlZnkS24zdlGnQzwM/Bj9/xa/ocut5V/yb4zPF3jm1 n2OhBsfb6nSxY6zIKAt70zNvYGaAyLkLNsFrjiqPnj+iB3/uBSXJhEUkb+WyexhMkolhSIW ZPd3n0AlcyRrvdh2zAtUHG/FD+Dzep1AQhZkhMuliCY8qMCJuE1tOeO3tWQa44QTu9qvvG8 sdiVi46WRHFDc14Lz0xSg== X-UI-Out-Filterresults: notjunk:1;V01:K0:uWVKNN/tNCA=:Xp8YbbDVwCevHlTJfkzlNe IUjs1M9vfU2jjikPtyB7GpcoKhHXBIq700ZFMozwKplw2E5izyEkSmQYwDQ7RBXYSsj8jeNA2 A9omJZ9kAhAJ8FrmgZL8YZvF5pvFtG9S1ExKPfA3htKl/n1SuDww0pkz79ziBLygoP/U/q4T3 zK5I1Ygp9AbYncOSQbNtl8qVYS0PIFj+eifLq65MB+/0eaerWCa+tQeappD/4YUfckHiJSG+M AN7jFAf3ZkMj8MQILuWyr1ljnTfJHJPXKKVz9KXnNZuYRZKNCctzEs2JMyBzsdQ03+2zmxyJK Gul4pJPxtNToCje+7DlNu11z+w6NUF+ANeV0cgqGIct701DjOc1IhjFu2bbtYdBBczZxz17fN Ir+JY2ZswghCk27HqnEYify3hLmJ9g6IAKjAudO3xjUSO+05nK28npM8q9qJCZTXMD4bb9MxM bvRjq5jyvdDpj9jS+RpffWHRcyZLeWgy+VsfZscYfam4/m9hIftOGS4ObUp79bsupQng65Ao2 PLFtGePpP1+c1T/VVQjuwfXFDGG0+PvHmBnlbhHgu1EKGifSq16F9BbB3dOC35zD0cXMw07hd xncuAJSXWGZLgnUg9YSuhP39XVil3KEX5llCEeCyfOXk6CRgPoeCdEQCz0ImY2XDdyXWiWXu7 OoYSFOhSgPs8hszslvLordx99mfJSE7XzYeZ96FM2zcaA2zfQRrWuur0/yq/3KYqebDlhwkK/ 3IBnJFmc9tQm739UswD6Iw7SkDHoLQQWK2nWjXpeT75L0E1zmP/ZHSQ0Wazxh5hxJiaUPBCLW esL1cvz --Apple-Mail=_C6DDDA4F-789B-4C50-9A61-EDC6AB877E29 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Robert, I just tried it out, but actually the OSGi-INF part of it is not = properly updated within Eclipse. By looking at the according m2e plugin = (https://github.com/tesla/m2eclipse-tycho = ), I am not sure where the = problem is exactly. This is what I figured out so far: There is a = org.sonatype.tycho.m2e.felix.internal.MavenBundlePluginConfigurator = configured in = https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2= e/plugin.xml = =20 That returns a build participant in = https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2= e/src/org/sonatype/tycho/m2e/felix/internal/MavenBundlePluginConfigurator.= java#L87 = . That one executes org.apache.felix.bundleplugin.ManifestPlugin. = Obviously the ManifestPlugin does not create the scr data unless = exportScr is set to true = (https://github.com/apache/felix/blob/trunk/tools/maven-bundle-plugin/src/= main/java/org/apache/felix/bundleplugin/ManifestPlugin.java#L80 = ). = Unfortunately the exportScr is not set to true by m2eclipse-tycho (this = is probably a bug in m2eclipse-tycho).=20 Also the maven-bundle-plugin does not seem to support writing the = metatype information (seems like a bug in the ManifestPlugin mojo of the = maven-bundle-plugin). Also I am not sure if the ManifestPlugin is called often enough by the = MavenBundlePluginConfigurator, the conditions in = https://github.com/tesla/m2eclipse-tycho/blob/master/org.sonatype.tycho.m2= e/src/org/sonatype/tycho/m2e/felix/internal/MavenBundlePluginConfigurator.= java#L103 = look wrong to me. E.g. if someone just adds an OSGi component class carrying some = annotations, this will not being picked up until the next full build. = Maybe that is deliberate to increase the build performance, but that = would mean not all changes lead to consistent Manifest/SCR/metatype = informations. Maybe someone else can confirm the observed behaviour, then I would = create bug reports for both issues. Konrad > On 09 Oct 2015, at 21:33, Robert Munteanu wrote: >=20 > Hi Konrad, >=20 >=20 >>> Am 09.10.15 um 18:14 schrieb Konrad Windszus: >>>> I experimented a bit and using something like this in my pom.xml = works pretty well. >>>>=20 >>>> >>>> org.apache.felix >>>> maven-bundle-plugin >>>> 3.0.0 >>>> true >>>> >>>> >>>> >>>> <_dsannotations>* >>>> >>>> <_dsannotations-inherit>true >>>> >>>> <_metatypeannotations>* >>>> >>>> = <_plugin>org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin;destdir=3Dt= arget/classes >>>> >>>> >>>> >>>> >>>> >>>> org.apache.felix >>>> org.apache.felix.scr.bnd >>>> 1.4.0 >>>> >>>> >>>> >>>>=20 >=20 > Out of curiosity, have you checked whether the m2e integration with > Eclipse works? I'm interested in the generation of the manifest but > also in the generation of the SCR descriptors. >=20 > Thanks, >=20 > Robert --Apple-Mail=_C6DDDA4F-789B-4C50-9A61-EDC6AB877E29--