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 AAC5718FFB for ; Fri, 4 Dec 2015 18:30:20 +0000 (UTC) Received: (qmail 38192 invoked by uid 500); 4 Dec 2015 18:30:20 -0000 Delivered-To: apmail-felix-dev-archive@felix.apache.org Received: (qmail 38125 invoked by uid 500); 4 Dec 2015 18:30:20 -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 38113 invoked by uid 99); 4 Dec 2015 18:30:20 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 Dec 2015 18:30:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id C94B2C0FFA for ; Fri, 4 Dec 2015 18:30:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=6.31 tests=[SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id Z15gcPnetVsN for ; Fri, 4 Dec 2015 18:30:06 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 3E8C442AD4 for ; Fri, 4 Dec 2015 18:30:06 +0000 (UTC) Received: from konradsbpprivat.fritz.box ([46.128.255.147]) by mail.gmx.com (mrgmx001) with ESMTPSA (Nemesis) id 0MQiVh-1ZhVVK2FY5-00U2df for ; Fri, 04 Dec 2015 19:29:59 +0100 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.1 \(3096.5\)) Subject: Re: How do the maven-scr-plugin and maven-bundle-plugin cooperate? From: Konrad Windszus In-Reply-To: <12D20600-3F22-4B70-A80D-A3CDDF0D3A66@gmx.de> Date: Fri, 4 Dec 2015 19:29:58 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: <1449242391.24644.49.camel@apache.org> <12D20600-3F22-4B70-A80D-A3CDDF0D3A66@gmx.de> To: dev@felix.apache.org X-Mailer: Apple Mail (2.3096.5) X-Provags-ID: V03:K0:AZhw0l8xS66GoeLmhXnI5e2G+SftVpRJ6cFBgEoiztMXLx75CRd DuTd14Ht8SeuNDNtTiHa4O5DpNJE2tWYVqc3P+jvU9+u8/fs6O9amG+k0lJkW6u0oTdXoy2 27HkHDBkHMQNEJNlH0/srsHv7U7Dxy1GFZWxMKVQ5Tc9xykzJLoSSjTX8ev2tsa/Kd24MSF oYWi5yiapyoNNxiu1f3Vg== X-UI-Out-Filterresults: notjunk:1;V01:K0:v5oD1Pv2phc=:cCVyp8mT86HMn31sdiCLVQ cn2MyL0fIXkht/n466Ze/giniX0+8UEkHemUpZbVPdWGf8wOBmh7RKPJoS72kNo+merL9j8Kg wNkSWOwtjvnlqc25VprH8P4L1BweeCj1ohOsF9Pv9ZgT3gL5Z8HLz/el9YuzD4YUpwDFSOZ+d oG9SPGFXDHEwcrHtmVeI6n7Fn30enpRMZE9BsrNymdf8dh6naFIRAYXHCAqgHtk8wy9GIcoFk A10ZiU9pHOW2w14F4EHqKFmnPPlnwre+cgeEG9M8QK3UKkK9xInqhgc57sg72UKtVZM7UwNF0 tCz7JGLGhZIXpglYNjimvZKXaOAU2N4Bx/Nwv/XWNt59yWQyp8Ee3CLntJYCBX8Mp9Ffk/+LF Txr95smcUhiMQjpRoqil5DRuxSUhFALMypmOMYQkiyfAVAOamrtqKmV8kMWh0UK2ykomirZ1r 83Z6HHfPUaIEldUnSKL8ihyImFlAitsxXNLGdpmLlHwbN9f7nDajh1P5LLEqwcXonG3d2MxED NIm0IML0W+M3py6dQLmthIAi5W9r6p31CpS4BciGuvdJa8x78nVncOnhO9a1TT22UVLi9Aw0X /b06vUp1S3zdlNy1YIgSzM4rbsIC/NOjqK+hMDCgBkA3SRK5o/UOqlbF7omNXWZRrG8ZwSVAk Ism/Jb4gImU9+QYNbu+sTfMeSodNmdxGa1bOrmloPzpPaaOha10csleLsY5o/HWHPBvkgq5e2 LsQF+FI+LaPe+nRYQ2cZ12euxC7juOBTPiLhN6X/gTuMDQR5pUQxUXJp56PrtWuD1j4AdQIkw lw00VrkOPChFOhSK+qi7zVbN1S9Z4moo6rTbsryNlglf4OyEF5BMxEMvwKGVMTK9KMIlKbYTj MS8bX0wcipzKo3eNpQbA== I would rather rewrite the maven-bundle-plugin mojo to correctly use the = BuildContext as being recommended in = https://wiki.eclipse.org/M2E_compatible_maven_plugins#BuildContext. The bnd-maven-plugin did it in a similar fashion = (https://github.com/bndtools/bnd/blob/master/maven/bnd-maven-plugin/src/ma= in/java/aQute/bnd/maven/plugin/BndMavenPlugin.java) and relies for m2e = just on the lifecycle-mapping-metadata in addition to the regular mojo = (https://github.com/bndtools/bnd/blob/master/maven/bnd-maven-plugin/src/ma= in/resources/META-INF/m2e/lifecycle-mapping-metadata.xml). > Am 04.12.2015 um 19:02 schrieb Konrad Windszus : >=20 > Hi Robert, > is this really worth the effort? > I guess we should now focus only on the maven-bundle-plugin as that = can even parse scr-compatible annotations now (compare with = http://www.mail-archive.com/dev@felix.apache.org/msg38291.html). > That way we don=E2=80=99t need to further examine the communications = across different plugins, but just fix m2eclipse-tycho to generate the = manifest and the service descriptors whenever some class has been = added/removed or just add the m2e extension to the maven-bundle-plugin = itself (you suggested that already in = http://www.mail-archive.com/dev@felix.apache.org/msg38332.html). > Is there any reason why you want m2eclipse-tycho to communicate with = maven-scr-plugin instead of just relying on the internal bnd feature? > Konrad >=20 >=20 >=20 >> Am 04.12.2015 um 16:19 schrieb Robert Munteanu : >>=20 >> Hi, >>=20 >> I'm looking at the Eclipse integration netweem the = maven-bundle-plugin >> and the maven-scr-plugin. For the bundle plugin this is handled by >> m2eclipse-tycho [1], while for the scr plugin this is done by the >> plugin itself, by using a special set of APIs which work in both >> Eclipse and the CLI. >>=20 >> Unfortunately, more recent versions of m2eclipse-tycho are more >> conservative about regenerating the bundle manifest [2], which means >> that unless a full build is triggered the manifest does not include >> changes to the Service-Component header. >>=20 >> I am trying to fix this (somehow), but I did not find the way the two >> plugins cooperate. I see that the scr plugin sets certain project >> properties related to the Service-Component header [3], but I have no >> idea where the bundle plugin reads those. >>=20 >> If anyone has an idea about how the plugins cooperate, or of any >> approach which can fix the Eclipse integration, please let me know. >>=20 >> Thanks, >>=20 >> Robert >>=20 >> [1]: https://github.com/tesla/m2eclipse-tycho >> [2]: = https://github.com/tesla/m2eclipse-tycho/commit/85cd048ffcd4702099 >> 2bdec2cd44f1a4945173bf >> [3]: = https://github.com/apache/felix/blob/f6c2e7f15e825521f2a9f778a8ab6 >> e0cacc208d5/tools/maven-scr- >> = plugin/src/main/java/org/apache/felix/scrplugin/mojo/SCRDescriptorMojo. >> java#L461-L465 >=20