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 3063F10D53 for ; Wed, 5 Mar 2014 08:31:35 +0000 (UTC) Received: (qmail 93041 invoked by uid 500); 5 Mar 2014 08:31:34 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 92998 invoked by uid 500); 5 Mar 2014 08:31:33 -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 91948 invoked by uid 99); 5 Mar 2014 08:31:31 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 08:31:31 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of bcanhome@googlemail.com designates 209.85.216.175 as permitted sender) Received: from [209.85.216.175] (HELO mail-qc0-f175.google.com) (209.85.216.175) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2014 08:31:25 +0000 Received: by mail-qc0-f175.google.com with SMTP id e16so745217qcx.20 for ; Wed, 05 Mar 2014 00:31:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lwnu+yb5cjOkvPZDKiRcYuLInpwK/T4+l+okIiezBZ0=; b=I85K9U/gHrVFnkHrnZBCrAj93KSCJrPwNnJvLeqm/4TYjfKiruqa7FSQ9WzQ1XHev7 8y6gmAwikCBWGCDpR4qZvRra8n/NL4WOinJUVo8lzz2yhuG8QngZCxTwHqIuXirDei/g EH+w85V+4C02oNZuLGaTf0Y7EYg5mwgH0mguXiBoa/tBPfDoSQz3VgFTySGgl4Xfk7bn akJ3wCUx0W4yGkUzaHd2jC5C3Du5BHWSvi7ax3HMHcifbIdAcPAgdzoSuPimwrebiIW3 rKZZc7JsznPh73jdmWjh3BOiSCcinuEYqJYGroLOBGaOAPj8oiqGGhxt4LKtWf+LDfl9 w3tg== MIME-Version: 1.0 X-Received: by 10.140.83.203 with SMTP id j69mr4918429qgd.42.1394008264475; Wed, 05 Mar 2014 00:31:04 -0800 (PST) Received: by 10.96.216.33 with HTTP; Wed, 5 Mar 2014 00:31:04 -0800 (PST) In-Reply-To: <5316DF01.1050309@nanthrax.net> References: <53161DF1.2070902@nanthrax.net> <5316D4D2.2020103@die-schneider.net> <5316D607.4080404@nanthrax.net> <5316D8F0.50606@die-schneider.net> <5316DF01.1050309@nanthrax.net> Date: Wed, 5 Mar 2014 09:31:04 +0100 Message-ID: Subject: Re: [PROPOSAL] karaf-maven-plugin changes From: Achim Nierbeck To: "dev@karaf.apache.org" Content-Type: multipart/alternative; boundary=001a11c11ed86b27da04f3d7d71d X-Virus-Checked: Checked by ClamAV on apache.org --001a11c11ed86b27da04f3d7d71d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Don't know, I would have prefered a one-to-rule-them-all maven plugin. It is still a maven plugin, and everything else would distract from the main purpose. But this is just my 2 cents and I don't want to be ignorant. regards, Achim 2014-03-05 9:23 GMT+01:00 Jean-Baptiste Onofr=E9 : > Rethinking about this, I propose: > > groupId: org.apache.karaf.maven.plugins > artifactId: [scr-maven-plugin, instance-maven-plugin, > feature-maven-plugin, kar-maven-plugin, ...] > > The plugin module will be in each module: > > - instance/instance-maven-plugin > - scr/scr-maven-plugin > - features/feature-maven-plugin > - kar/kar-maven-plugin > - ... > > With tests/itests in each plugin > > The tooling module will disappear. > > WDYT ? > > Regards > JB > > > On 03/05/2014 08:57 AM, Christian Schneider wrote: > >> I think the big problem with one big plugin project is that the code >> will be very difficult to maintain and test. >> The command names below sound good. Especially that they sound similar >> to karaf commands. So it it easier for users to know what they do. >> >> I think it should be possible to split the plugin into projects based on >> the name before the ":". These goals should do similar things and so >> should have similar >> dependencies and make good candidates for modules. >> >> Christian >> >> On 05.03.2014 08:45, Jean-Baptiste Onofr=E9 wrote: >> >>> I would prefer to have one plugin with multiple goal (I think it's >>> better for the users). >>> >>> I have no problem to rename/split plugins for future. What do you >>> think about: >>> >>> - karaf-commands:documentation >>> - karaf-scr:scr >>> - karaf-kar:create >>> - karaf-kar:install >>> - karaf-features:populate-repository >>> - karaf-features:generate >>> - karaf-features:validate >>> - karaf-instance:archive >>> - karaf-instance:run >>> - karaf-instance:deploy >>> - karaf-instance:client >>> >>> ? >>> >>> Regards >>> JB >>> >>> On 03/05/2014 08:40 AM, Christian Schneider wrote: >>> >>>> I think we should not put all karaf plugins into one maven plugin. >>>> Instead I think it makes more >>>> sense to analyze which goals have similar dependencies and put them >>>> together. >>>> >>>> For example the karaf-scr plugin has very few dependencies and is bett= er >>>> suited to be kept as a separate plugin. >>>> The same may apply for others but I have not looked into them in detai= l. >>>> >>>> Christian >>>> >>>> >>>> Am 04.03.2014 19:39, schrieb Jean-Baptiste Onofr=E9: >>>> >>>>> Hi all, >>>>> >>>>> I would like to discuss with you about my current work on the >>>>> karaf-maven-plugin: >>>>> >>>>> 1/ on master, I refactored the karaf-maven-plugin to use the Maven >>>>> annotations. It's simpler and cleaner, and compatible with all Maven >>>>> version. I also added the Maven 3.1 and 3.2 support. I also fixed the >>>>> same issue as on karaf-3.0.x (see below) and cleanup the code (using >>>>> global >>>>> I propose the following cleanup/refactoring/renaming on the goals: >>>>> - karaf:commands-generate-help renamed to karaf:commands-documentatio= n >>>>> - karaf:create-instance-archive renamed to karaf:instance-archive >>>>> - karaf:features-add-to-repository renamed to >>>>> karaf:populate-repository >>>>> - karaf:features-create-kar renamed to karaf:create-kar >>>>> - karaf:features-export-meta-data renamed to karaf:export-metadata >>>>> - karaf:features-generate-descriptor renames to karaf:create-features >>>>> - karaf:features-validate-descriptor renamed to >>>>> karaf:validate-features >>>>> Introduction of new goals: >>>>> - karaf:client to interact with a running instance >>>>> - karaf:instance to interact with instances (start, stop, etc) >>>>> - karaf:deploy to deploy bundles or features (and eventually populate >>>>> the system repository using scp) >>>>> - karaf:run to bootstrap and run a Karaf container >>>>> I also merged the scr-karaf-maven-plugin in karaf-maven-plugin as a >>>>> dedicated goal (karaf:scr). >>>>> 2/ on karaf-3.0.x branch, I introduced a set of new integration tests >>>>> (using the maven-invoker-plugin). I fixed the different issues >>>>> (construct global features set to resolve all features including >>>>> transitive ones, support of file and http URLs, support of >>>>> in features repository XML, etc). >>>>> >>>>> Thoughts ? >>>>> >>>>> Regards >>>>> JB >>>>> >>>> >>>> >>>> >>> >> >> > -- > Jean-Baptiste Onofr=E9 > jbonofre@apache.org > http://blog.nanthrax.net > Talend - http://www.talend.com > --=20 Apache Karaf Committer & PMC OPS4J Pax Web Committer & Project Lead blog Software Architect / Project Manager / Scrum Master --001a11c11ed86b27da04f3d7d71d--