Return-Path: Delivered-To: apmail-archiva-dev-archive@www.apache.org Received: (qmail 33543 invoked from network); 18 Jun 2010 04:50:06 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 18 Jun 2010 04:50:06 -0000 Received: (qmail 91655 invoked by uid 500); 18 Jun 2010 04:50:06 -0000 Delivered-To: apmail-archiva-dev-archive@archiva.apache.org Received: (qmail 91516 invoked by uid 500); 18 Jun 2010 04:50:03 -0000 Mailing-List: contact dev-help@archiva.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@archiva.apache.org Delivered-To: mailing list dev@archiva.apache.org Received: (qmail 91505 invoked by uid 99); 18 Jun 2010 04:50:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 04:50:02 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of odeaching@gmail.com designates 209.85.212.42 as permitted sender) Received: from [209.85.212.42] (HELO mail-vw0-f42.google.com) (209.85.212.42) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jun 2010 04:49:54 +0000 Received: by vws16 with SMTP id 16so397315vws.15 for ; Thu, 17 Jun 2010 21:49:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:content-type; bh=8I6NlhccrsazXeckIy+QbXXrzfZRBJ8Hnz4biAHoVfo=; b=RzI8+bkGjhGCaXIpVVs5FcUomCw4EkliUaKx77FA49He4+beu5eQnzspoFDZJBqwwG gptMbuoia3acjBhbouoS6thPkodffQTcCV2PCqh8KPoXCstE9sa6fVGjr68bXRwnhO+P LVC+j/bOKGkEqZ7kwndGRUfDCdDgDSZ4h17Ow= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=kj4nxiXH5cmmvEyqkp36eSiAn3EgV9JUMkZawuczfx5h3LLmi6cav/ftpmyxhIG58w t/b9NeqDoQ7vGkyuDvN3iCW2pUNKVOMEMXpQJRvUcVlL4i2HutpggZvxbtWKVbXX3Hme 7H5fw6XASykHURY1vjzREPhXQaVcpGQb7ON20= MIME-Version: 1.0 Received: by 10.229.181.3 with SMTP id bw3mr226284qcb.155.1276836573647; Thu, 17 Jun 2010 21:49:33 -0700 (PDT) Sender: odeaching@gmail.com Received: by 10.229.239.147 with HTTP; Thu, 17 Jun 2010 21:49:33 -0700 (PDT) In-Reply-To: <43D11043-D3D5-4656-8DC8-AABE011A8FE4@apache.org> References: <43D11043-D3D5-4656-8DC8-AABE011A8FE4@apache.org> Date: Fri, 18 Jun 2010 12:49:33 +0800 X-Google-Sender-Auth: 15k1Y4dbPtGhicjjiupYlmtTeQQ Message-ID: Subject: Re: A few notes on new repository API From: Deng Ching To: dev@archiva.apache.org Content-Type: multipart/alternative; boundary=00163631011f689376048946ae6d X-Virus-Checked: Checked by ClamAV on apache.org --00163631011f689376048946ae6d Content-Type: text/plain; charset=ISO-8859-1 On Fri, Jun 18, 2010 at 12:22 PM, Brett Porter wrote: > > On 17/06/2010, at 3:07 PM, Deng Ching wrote: > > > A couple of things I noted down for the new repository API while working > on > > the generic metadata: > > 1. further improvements on generic metadata: > > - metadata can be displayed by category (hierarchical) for easier > > viewing > > This would be if you want to view all the metadata, instead of the generic > one (which is not hierarchical, unless you change the way it is handled). > > > - implement a new plugin for the rating instead of including this in > the > > generic metadata (which is shown as key-value pairs) as suggested by > Brett > > What I meant here is that if you want to do something on repeated > instances, it'd be better to have a plugin (and standard namespace), that > can validate the data and do more complicated handling, rather than > requiring some additional naming convention. These are pretty simple pieces > of code after all - but the generic one is still useful for those that want > to just use a particular annotation internally without any new code. > > > 2. make the location of the metadata repository (currently stored in the > > file system) configurable > > The file-based implementation is still only a proof of concept anyway - if > we decide to harden that and use it I agree. But I personally would like to > try and make JCR work and see how well it performs. > > > - one potential problem with having the default location in the root > > directory of the actual repository is that the metadata repo can get > > included if you run merge the Archiva repo to another repo (ex., running > mvn > > stage:copy in a staging repo) > > > I think this is a fault of that goal more than Archiva :) That shouldn't > impact the merge implementation happening now. We ignore all those in the > scanning. > Sorry, I didn't mean the repo merge feature in Archiva but rather when you run mvn stage:copy (like when we're releasing Archiva :) Thanks, Deng --00163631011f689376048946ae6d--