Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11FF018E5E for ; Thu, 11 Feb 2016 22:19:10 +0000 (UTC) Received: (qmail 38275 invoked by uid 500); 11 Feb 2016 22:19:09 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 38236 invoked by uid 500); 11 Feb 2016 22:19:09 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 38224 invoked by uid 99); 11 Feb 2016 22:19:09 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Feb 2016 22:19:09 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id DBA1DC19EF for ; Thu, 11 Feb 2016 22:19:08 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.93 X-Spam-Level: ** X-Spam-Status: No, score=2.93 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, KAM_INFOUSMEBIZ=0.75, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_DBL_ABUSE_REDIR=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 0CjPlSsL9VSW for ; Thu, 11 Feb 2016 22:19:06 +0000 (UTC) Received: from mail-wm0-f51.google.com (mail-wm0-f51.google.com [74.125.82.51]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id C1D9C42BA7 for ; Thu, 11 Feb 2016 22:19:05 +0000 (UTC) Received: by mail-wm0-f51.google.com with SMTP id g62so88056065wme.0 for ; Thu, 11 Feb 2016 14:19:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=HMGUm8GP/4/49gqgBzx3lJVBkRTPDHr+NE+hTO9Yo9k=; b=m/4jRM6ZTKe3LIIcpvWLH6N9WK2/5YWhXzYgORGBdq18PXv0Gom9WA2odPQ+ecW4Zl RBI1SPGEuRsh4QiKxK/nrGt5OhV5g/NcI9UkvlK4/xGercv9iDhh/LJaTkPuVN0Oev88 Xbx7jZcVMVpMn9+/45oUlXdpnQHwIzJfTjUeo92DPi5iiK1KWg2VcI/VF5WjCnfsoox1 QxkGP0njkhtmmSXX/Go8ZMMoV6CrCXwoWNcwnPKMTQvy66qUbPBl8FdsoNpCOatbNHt9 SeJhC/Zz7yX8b3VjA1HChi2b3v2AIYFz845IUjBKT/ARRwxUV4ALKI7FNMxr/vmss/bY X0Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=HMGUm8GP/4/49gqgBzx3lJVBkRTPDHr+NE+hTO9Yo9k=; b=d9axb5eALyI1bBNQRAURC6YR+1NhOzkLmm2jB6947PxdWbay91zze4H6v6IEuBFE2u 9t8PXKeSgFrm7a279V/LbT9FeSXtK7ZgDssSbDfSskmPBVgN6OJI+PCQGQXPHOSdaBe3 l5e1ODj47IUJ43XkAOzDy7TPbavKPhDfERQCH7L9feR/VugFaQrcL+DkEqROQuMA5E9v uYH7UP0wF/1cb8S1JZXN0Q16yR1Uy53cMKnPdOOKGJhSpWrbVZY4gGJQhdTlM4ymKZq7 1ra1dM3gR9fXBScTEYde5tRwwr3pn6KWJe164g81d9/zt8IyQxBZod13s4pmyl0jlS63 mIwg== X-Gm-Message-State: AG10YOT4bDcfLqKXu6WYwpmxDD77RAnDPJ4g05P+43rNanB1xAGaiTRDsT434wKMkLPxMGebco7Mp6mhwjAPcw== MIME-Version: 1.0 X-Received: by 10.194.22.167 with SMTP id e7mr57024359wjf.29.1455229144862; Thu, 11 Feb 2016 14:19:04 -0800 (PST) Received: by 10.28.227.11 with HTTP; Thu, 11 Feb 2016 14:19:04 -0800 (PST) In-Reply-To: References: <56BC8ADB.4000201@die-schneider.net> <56BC8F65.2070002@die-schneider.net> <56BC96D6.6090909@nanthrax.net> <56BCDEAB.7030303@die-schneider.net> Date: Thu, 11 Feb 2016 23:19:04 +0100 Message-ID: Subject: Re: bnd files in Decanter Project From: Milen Dyankov To: dev@karaf.apache.org Content-Type: multipart/alternative; boundary=047d7b5d518e3f2165052b85f08a --047d7b5d518e3f2165052b85f08a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Guys, Allow me to provide my 2 cents in this discussion. One - I think we have more than enough arogancie and blame games in the OSGi community. We really don't need more of those. It would be nice if everyone could remain calm and watch their language even if they have a point as far as the facts are concern. Let's not assume bad intentions just because of frustration with something. People make mistakes and wrong decisions. And we are all people! Luckily it's only software in this case, no one gets hurt (physically) and things are easy to fix. Let us be nice to each other. Please! Two - for me personally it doesn't make huge difference if the information is in the POM or in the bnd file. You, the guys working on the project the most, should decide on that. However here are few things to consider: - It is true that using bnd files reduces the size of the POMs which is particularly important if you have complex multi-module projects - Both maven plugins available up to date are using bnd (not to be confused with bnd-tools) under the hood and bnd.bnd files are the default way to provide instructions to bnd. Personally I don't understand why someone decided to have this in POM in first place while creating the maven-bundle-plugin. - The new bnd-maven-plugin (which I see people using more and more often) requires you to have all the instructions in bnd.bnd file. Moreover it is able to process bnd.bnd from parent projects which allows you to completely skip those in child projects if you don't need to. Don't get me wrong, I'm not suggesting yet another approach. Just pointing out there are options out there that could be discussed in civilized and polite way! Best, Milen On Thu, Feb 11, 2016 at 9:43 PM, Achim Nierbeck wrote: > Hi Christian, > > I don't think you seem to follow an evil plot, it's just you don't seem t= o > think ahead and take yourself to important. > This discussion about bnd.file or not bnd.file should have been done befo= re > you provided evidence. > A discussion on IRC is as you should be aware of not a valid discussion. = So > if it didn't happen on the mailinglist, it didn't happen. > > At this point I don't get why you now try to turn your "jumping the gun" > into me being at fault. > > The only change I'm arguing about is the extra bnd.file all other build > improvements are regular changes, which I'm not arguing about. > Again for me an extra configuration file isn't of any value compared to t= he > configuration contained in the pom. > > So this isn't about me insisting you to change everything back, the issue > here is that you impose what you think is best on everybody else. > > Achim > > > > 2016-02-11 20:19 GMT+01:00 Christian Schneider : > > > Hi Achim, > > > > thanks for your detailed description. I can assure you that I do not > > follow any evil plot like you seem to think. I will for sure not use > gradle > > any time soon. I am quite happy with maven and am just trying to make o= ur > > project better and the code more efficient. I also was not really sneak= y > by > > creating an issue up front and describing what I want to do. I just did > not > > to also spawn a discussion on the list to make this more obvious. Pleas= e > be > > assured that the only reason for this was my inherent impatience and go= od > > faith that JB would not have supported my change if he thought it would > be > > a bad thing for the karaf community. So I was not really aware of doing > > something wrong at this time. > > > > Please also take into account that your build problem only happened on = a > > new module you wanted to add and could be fixed by just adding the empt= y > > bnd.bnd file. So I think a -1 while possible was not really necessary. = I > > think the better option would have been to bring the issue on the list > and > > try to reach a consensus. I think in my whole apache history I never di= d > a > > -1 on a commit. > > > > Do you insist on me taking back the commit now or would it be ok to fir= st > > try to reach a consensus or if not possible do a vote? I will happily > undo > > my commit if the outcome is to not do the change. On the other hand if = we > > agree to do the change it would save me to shuffle the code back and > forth. > > > > If you insist on this I will undo the changes now. It is probably not > > possible to just undo the commit as there are quite a few commits in > > between. So it will be quite some manual work for me. > > I also hope that if you insist on me taking back the change now you are > ok > > if I only undo the bnd file part of the commit and leave other changes > like > > moving some common deps into the parent in place. > > > > Christian > > > > > > > > On 11.02.2016 17:06, Achim Nierbeck wrote: > > > >> Hi there, > >> > >> I'll stick to my > >> > >> -1 > >> > >> Now the reasons for this: > >> > >> Even though the opposite has been proclaimed on the list, it did break > the > >> build for me. As without a bnd file the project isn't building > >> successfully, even though the information needed has been provided by > the > >> pom. > >> > >> Second the usage of an extra bnd file is error prone, and I don't care > >> about removed lines of code, this is just not a justification. > >> Another thing why I opposed to extra bnd files. Only on Eclipse when > using > >> the bnd-tools project you have an extra editor available to use it. An= d > >> this only works for people using both, eclipse and the bnd-tools. All > >> others using a different tool chain are losing the benefit to see > >> everthing > >> in one go. > >> So basically people using IntelliJ or Netbeans (both tools to be know = to > >> work far better with maven, then eclipse) are out of this. And I rathe= r > >> don't rely on a proprietary tooling for this. > >> > >> So what's next after this? Just sneak the bnd-tools plugins into this > >> project for "supposedly" better support with eclipse and bnd-tools? > >> I don't think so. Our basis is still Maven and not Gradle, and this is > >> because we have a big user-base that feels very comfortable with it. > >> Using the declarations in the pom has been working nicely and if nothi= ng > >> needs to be done one just needs to add those 4 lines for the usage of > the > >> maven-bundle-plugin. No extra file needed, everything is in one place > and > >> is in line with all other Karaf projects. > >> Actually this is one of the reasons I removed those bnd files from the > >> pax-web project long time ago, because all those project related > >> information are in one place now, instead of scattered around the > project. > >> > >> Third, and this does outweigh everything else. Christian tried to > provide > >> evidence with this move and now argues this way everything is better f= or > >> us. > >> At this point I can't accept this. I don't think this is the way our > >> community works and surely this isn't the way we work together on our > >> sources. At least > >> this has been my understanding of a successful project. > >> If I'm wrong on this and everybody can do as he likes, I guess I need > >> think > >> about the consequences. > >> > >> regards, Achim > >> > >> > >> > >> > >> 2016-02-11 15:12 GMT+01:00 Jean-Baptiste Onofr=C3=A9 = : > >> > >> I see valid arguments here, and I keep my +1. > >>> > >>> Regards > >>> JB > >>> > >>> > >>> On 02/11/2016 02:40 PM, Christian Schneider wrote: > >>> > >>> I also did a jira issue that explains the change. > >>>> https://issues.apache.org/jira/browse/KARAF-4300 > >>>> > >>>> To show the advantage let me compare one of the old configs to the n= ew > >>>> one: > >>>> http://apaste.info/gC5 > >>>> > >>>> This shows that 18 lines of xml are replaced by 2 lines in the bnd > file. > >>>> The syntax is basically the same > >>>> as in xml just without the brackets. The big advantage is that we ca= n > >>>> leave out the boilerplate xml that maven > >>>> needs to redefine a plugin. > >>>> > >>>> So I think the change to bnd files makes a lot of sense. I also did > this > >>>> change in Aries a long time ago. > >>>> Btw. I also added API baselining in this change which helps us when = do > >>>> changes on the API. > >>>> > >>>> Christian > >>>> > >>>> > >>>> On 11.02.2016 14:21, Christian Schneider wrote: > >>>> > >>>> As further reference. This is the commit where I did the change: > >>>>> > >>>>> > >>>>> > https://github.com/apache/karaf-decanter/commit/dabeeecd41f46a0c5344580f6= 5c2ea6877fd6d35 > >>>>> > >>>>> > >>>>> As you can see I added 108 lines and removed 753. > >>>>> > >>>>> That means the usage of bnd files saves us about 640 lines of xml. = I > >>>>> think this is a strong indicator that it is a good idea to do so. O= f > >>>>> course it might cause problems that I overlooked. > >>>>> > >>>>> Christian > >>>>> > >>>>> On 11.02.2016 13:57, Christian Schneider wrote: > >>>>> > >>>>> Hi Achim, > >>>>>> > >>>>>> it is difficult to predict what changes warrant a discussion. I > agree > >>>>>> with you that I should have discussed this on the list. I talked t= o > >>>>>> JB and he was positive so I did not expect any problems. Apparentl= y > I > >>>>>> was wrong :-( > >>>>>> > >>>>>> The usage of bnd files for configuration of the imports and export= s > >>>>>> is a very concise replacement for the same configs in xml. > >>>>>> > >>>>>> The big advantage is that you can omit the maven-bundle-plugin in > the > >>>>>> pom of each module. So basically you replace about 10-15 lines of > xml > >>>>>> with 0-5 lines in the bnd file. > >>>>>> > >>>>>> This does not break any functionality for users. For developers it > >>>>>> just requires to put an empty bnd.bnd file into each module if it > >>>>>> does not need special configs. Unfortunately it is not possible to > >>>>>> define that it uses a bnd file if it is there and is also happy i= f > >>>>>> no such file is there. I plan to suggest this to the felix project > as > >>>>>> it would make this even easier to use. > >>>>>> > >>>>>> In what way do you see this as a breaking change? I made sure that > >>>>>> all code still works and that all tests still pass. I also did > manual > >>>>>> tests of all the modules. > >>>>>> > >>>>>> So the only thing you need to do for a new module is to add this > >>>>>> empty bnd.bnd file and you are fine. If you do not want to use the > >>>>>> bnd file to configure your OSGi configs you can use the xml like > >>>>>> before. > >>>>>> > >>>>>> So apart from my bad communication where I fully agree with you.. = do > >>>>>> you really think this warrants a -1? > >>>>>> Do you have any technical concerns? > >>>>>> > >>>>>> Christian > >>>>>> > >>>>>> > >>>>>> 2016-02-11 9:55 GMT+01:00 Achim Nierbeck >>>>>> >: > >>>>>> > >>>>>> Hi, > >>>>>> > >>>>>> the other day I added another module to the decanter project > >>>>>> (cassandra > >>>>>> appender). > >>>>>> And I've got to say I was quite astonished to see all those b= nd > >>>>>> files in > >>>>>> there, but what > >>>>>> really got me stirred. It is mandatory to have those now. > >>>>>> > >>>>>> I can't remember seeing a vote for such a change in > development! > >>>>>> > >>>>>> So here is my > >>>>>> > >>>>>> -1 > >>>>>> > >>>>>> on this not communicated and breaking functionality change th= at > >>>>>> sneaked in > >>>>>> there. > >>>>>> > >>>>>> So whoever changed that needs to revoke this, NOW. > >>>>>> It hasn't been discussed up-front and actually I just can't > stand > >>>>>> such > >>>>>> sneaky moves. > >>>>>> > >>>>>> regards, Achim > >>>>>> > >>>>>> -- > >>>>>> > >>>>>> Apache Member > >>>>>> Apache Karaf Committer & PMC > >>>>>> OPS4J Pax Web > >>>>>> Committer & > >>>>>> Project Lead > >>>>>> blog > >>>>>> Co-Author of Apache Karaf Cookbook > >>>>>> > >>>>>> Software Architect / Project Manager / Scrum Master > >>>>>> > >>>>>> > >>>>>> > >>>>>> > >>>>>> -- > >>>>>> -- > >>>>>> Christian Schneider > >>>>>> http://www.liquid-reality.de > >>>>>> < > >>>>>> > >>>>>> > https://owa.talend.com/owa/redir.aspx?C=3D3aa4083e0c744ae1ba52bd062c5a7e4= 6&URL=3Dhttp%3a%2f%2fwww.liquid-reality.de > >>>>>> > >>>>>> Open Source Architect > >>>>>> http://www.talend.com > >>>>>> < > >>>>>> > >>>>>> > https://owa.talend.com/owa/redir.aspx?C=3D3aa4083e0c744ae1ba52bd062c5a7e4= 6&URL=3Dhttp%3a%2f%2fwww.talend.com > >>>>>> > >>>>>> -- > >>>>> Christian Schneider > >>>>> http://www.liquid-reality.de > >>>>> > >>>>> Open Source Architect > >>>>> http://www.talend.com > >>>>> > >>>>> > >>>> > >>>> -- > >>> Jean-Baptiste Onofr=C3=A9 > >>> jbonofre@apache.org > >>> http://blog.nanthrax.net > >>> Talend - http://www.talend.com > >>> > >>> > >> > >> > > > > -- > > Christian Schneider > > http://www.liquid-reality.de > > > > Open Source Architect > > http://www.talend.com > > > > > > > -- > > Apache Member > Apache Karaf Committer & PMC > OPS4J Pax Web Committer & > Project Lead > blog > Co-Author of Apache Karaf Cookbook > > Software Architect / Project Manager / Scrum Master > --=20 http://about.me/milen --047d7b5d518e3f2165052b85f08a--