Return-Path: X-Original-To: apmail-maven-dev-archive@www.apache.org Delivered-To: apmail-maven-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 6567C7B17 for ; Sun, 16 Oct 2011 08:34:43 +0000 (UTC) Received: (qmail 62631 invoked by uid 500); 16 Oct 2011 08:34:41 -0000 Delivered-To: apmail-maven-dev-archive@maven.apache.org Received: (qmail 62445 invoked by uid 500); 16 Oct 2011 08:34:38 -0000 Mailing-List: contact dev-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Developers List" Reply-To: "Maven Developers List" Delivered-To: mailing list dev@maven.apache.org Received: (qmail 62434 invoked by uid 99); 16 Oct 2011 08:34:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2011 08:34:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ansgar.konermann@googlemail.com designates 74.125.82.171 as permitted sender) Received: from [74.125.82.171] (HELO mail-wy0-f171.google.com) (74.125.82.171) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 16 Oct 2011 08:34:31 +0000 Received: by wyi11 with SMTP id 11so494692wyi.30 for ; Sun, 16 Oct 2011 01:34:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Q2r64Us0ne4ImRt3o+bhyC2jlXbwurMM6sF+sjfkE2k=; b=UR08vSUmNL3dNAGoDGpDfxM/HRr0WzUMaAjuYBs52CMj/pkBHtZOiWXdP3UC+j0oZp eodemUhCVULeo0JYMYhKcMg+nCrTuu/ncVH4z7wBFYLvxt+PQuNuWCM5t+ClKPVMWetJ UH49xBP5Jqnb8c9mZwxc3HB7QHblW84dRzT9E= MIME-Version: 1.0 Received: by 10.227.7.25 with SMTP id b25mr1728982wbb.103.1318754049828; Sun, 16 Oct 2011 01:34:09 -0700 (PDT) Received: by 10.180.86.162 with HTTP; Sun, 16 Oct 2011 01:34:09 -0700 (PDT) Received: by 10.180.86.162 with HTTP; Sun, 16 Oct 2011 01:34:09 -0700 (PDT) In-Reply-To: References: Date: Sun, 16 Oct 2011 10:34:09 +0200 Message-ID: Subject: Re: is it possible to search on an artifactid without a groupid in a mojo? From: Ansgar Konermann To: Maven Developers List Content-Type: multipart/alternative; boundary=002215727532afa92c04af665acc --002215727532afa92c04af665acc Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Am 16.10.2011 09:57 schrieb "Shaun Elliott" : > > Is it possible to search on an artifactid without a groupid in a mojo? > > I am using maven 3. I'd like to "search" for a given groupid in a mojo - > I've been using: ArtifactMetadataSource, but it is deprecated and doesn't > seem to have what I need. Is there something else I should be using? Is what > I'm trying to do even possible? If your search space is not too large (say: limited to a few potential groupids) then it should be possible. You could Google for Sonatype Aether documentation and use that library directly to resolve all candidate artifacts until aether comes back without error code. (linear search). However, I'm not so sure why one would want this? Can you tell me mote abou= t your use case (just curious). Maybe there is a much simpler solution for your problem? Thanks in advance Ansgar > > Thanks. > > -- > Ren=E9 Descartes is in a bar at closing time. The bartender asks him if h= e'd > like another drink. Descartes says, "I think not," and he disappears. --002215727532afa92c04af665acc--