Return-Path: Delivered-To: apmail-maven-users-archive@www.apache.org Received: (qmail 21112 invoked from network); 4 Aug 2010 17:45:18 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Aug 2010 17:45:18 -0000 Received: (qmail 81300 invoked by uid 500); 4 Aug 2010 17:45:16 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 81214 invoked by uid 500); 4 Aug 2010 17:45:15 -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 81206 invoked by uid 99); 4 Aug 2010 17:45:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 17:45:15 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: 209.85.212.171 is neither permitted nor denied by domain of brianf@infinity.nu) Received: from [209.85.212.171] (HELO mail-px0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Aug 2010 17:45:09 +0000 Received: by pxi10 with SMTP id 10so2029082pxi.30 for ; Wed, 04 Aug 2010 10:44:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.114.72.1 with SMTP id u1mr1165417waa.31.1280943885765; Wed, 04 Aug 2010 10:44:45 -0700 (PDT) Received: by 10.220.72.205 with HTTP; Wed, 4 Aug 2010 10:44:45 -0700 (PDT) In-Reply-To: <4C596395.3030509@artifact-software.com> References: <4C596395.3030509@artifact-software.com> Date: Wed, 4 Aug 2010 13:44:45 -0400 Message-ID: Subject: Re: How to get list of repositories referred by a pom.xml, including repos from its ancestors From: Brian Fox To: Maven Users List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I added a goal to the dependency plugin a month or so ago to make it easier to dump out the full list of repos used by a build: mvn org.apache.maven.plugins:maven-dependency-plugin:2.2-SNAPSHOT:list-repo= sitories On Wed, Aug 4, 2010 at 8:56 AM, Ron Wheeler wrote: > =A0On 04/08/2010 4:02 AM, amaresh mourya wrote: >> >> Hi All, >> >> How to get list of repositories referred by a pom.xml, I want all >> repositories explicitly written in this pom and all of its ancestors. >> I have just been able to find MavenProject.getRepositories() method for = my >> requirement, but if there are some change in parents repositories set >> between to successive calls of getRepositories(), I am not able to find >> changed set, reason being it stores resolved artifacts( here parent's) i= n >> project cache, and second time it doesn't go for again reading parent's >> pom.xml. >> >> Which method can give me, all repositories referred by a pom.xml, each >> time >> resolving all its parents. Because in my use case all pom.xmls are >> supposed >> to be changed anytime. >> >> Thanks, >> Amaresh >> > > There may be a more controlled way to do this. > Install a repo in your company without proxy so that all builds are done > from your repository and you can control what is in the repository. > > What is the ultimate problem that you are trying to solve? > It looks like you are attacking the symptom rather than the ultimate prob= lem > and ending up doing a lot of work for a less than satisfactory result tha= t > requires a lot more reporting and gives much less certainty. > > Ron > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org