Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 64898 invoked from network); 29 Mar 2006 00:06:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 29 Mar 2006 00:06:04 -0000 Received: (qmail 21773 invoked by uid 500); 29 Mar 2006 00:05:58 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 21721 invoked by uid 500); 29 Mar 2006 00:05:57 -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 80921 invoked by uid 99); 28 Mar 2006 23:21:09 -0000 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=C/nXgXaVe9iPfCJ/xS56pYhZHkCcVdlgrmegEz05nM08NdjBGtOw8Gm4FuhjCek5M+u8KZhLwIE2BIyHXbH9z+dS/dGNckaK7k98vHikVLaaYqno0cG2zhwlPYfvyS+Zrttdjchz73Rxi7WyTxO71OzT9tzmZ7vQ2B3vJm9PVdw= ; Message-ID: <20060328232044.58900.qmail@web35401.mail.mud.yahoo.com> Date: Tue, 28 Mar 2006 15:20:44 -0800 (PST) From: Matthew Beermann Subject: [m2] Figuring out (from a plugin) what URL a dependency came from? To: users@maven.apache.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1026272912-1143588044=:37000" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N --0-1026272912-1143588044=:37000 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit I'm writing a plugin that, among other things, needs to know where exactly a dependency came from; that is, a fully qualified URL to the remote repository where the artifact was retrieved. Seemed easy at first - write a mojo, iterate through project.getArtifacts(), call artifact.getRepository() on each... and the return value turns out to be always null. Huh? Why? I also had a look at the ResolutionListener interface, but it seems to suffer from the same problem: none of the callback methods are passed data that would tell me which repository is being examined. Is there any way to get at this information? Thanks! --Matthew Beermann --------------------------------- Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. --0-1026272912-1143588044=:37000--