From users-return-131008-apmail-maven-users-archive=maven.apache.org@maven.apache.org Thu Jan 31 23:11:02 2013 Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 27327E9E8 for ; Thu, 31 Jan 2013 23:11:02 +0000 (UTC) Received: (qmail 19445 invoked by uid 500); 31 Jan 2013 23:10:59 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 19302 invoked by uid 500); 31 Jan 2013 23:10:59 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 19290 invoked by uid 99); 31 Jan 2013 23:10:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 23:10:59 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of henrikeriksson75@gmail.com designates 209.85.128.180 as permitted sender) Received: from [209.85.128.180] (HELO mail-ve0-f180.google.com) (209.85.128.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 31 Jan 2013 23:10:31 +0000 Received: by mail-ve0-f180.google.com with SMTP id jx10so2450539veb.25 for ; Thu, 31 Jan 2013 15:10:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=2ulFTIrMKOCpdksvt1jBlulf1QXLpCCBFKQ/UJems7Q=; b=R6Z++I+dEvKKFFLwGRp9qa8SNgu0CaS61mmgoIKOfKLuwqzkStLgM8RZKNN7PyZn81 l4/PcW9cktpHojyBjrsxNzIEzZDhBVIvcwpr0l64St8kjS7/ZFLv/l0mCWcVq3B1a8dH l6GJcPgep7A6mNUN46Fab15wMkckrJ2wZIkDFG8ZFNF5M7jKcFZtrKDRqHODA970+j6a jX4hL2kqPQk+mBYloR/rPhJ/GlyFK65SlRuirKWGdFhqpmhfxbC8IpW/X0X64AnXYHsJ J7iE7CnCbzbClq0FdGH0BZ6VXFobKU8Vr+/wo5FvAHfZtjhjtTgl3/TWoHO8JF+qShV6 RBVw== MIME-Version: 1.0 X-Received: by 10.220.240.11 with SMTP id ky11mr9609011vcb.11.1359673805600; Thu, 31 Jan 2013 15:10:05 -0800 (PST) Received: by 10.58.248.97 with HTTP; Thu, 31 Jan 2013 15:10:05 -0800 (PST) Date: Fri, 1 Feb 2013 00:10:05 +0100 Message-ID: Subject: Listing all attached artifacts for a specific GAV From: Henrik Eriksson To: Maven Users List Content-Type: multipart/alternative; boundary=14dae9cdcc7531791304d49dbae6 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9cdcc7531791304d49dbae6 Content-Type: text/plain; charset=ISO-8859-1 Hello. I'm writing a plugin and I'm wondering if there is any way of retrieving an artifact's attached artifacts in a repository. I know the main artifact but like to get the attached ones too. There are several workarounds for this, but I would like to find out if there is a better way. I have been searching the APIs and documentation but haven't yet found a nice way of doing it. The reason of doing this is because I'd like to so you don't need to declare them in a pom. Example: com.acme.comp:artifact:ear:1.0 <-- main artifact com.acme.comp:artifact:attachment1:xml <-- attachment which I'd like to get programmatically without knowing the classifier name. TIA Henrik --14dae9cdcc7531791304d49dbae6--