Once Maven has resolved an artifact, the local repository does not remember where it came from, so it would not be possible to do this reliably (without re-resolving them all, which would essentially just be doing this in order).
You could make a feature request for Maven to remember this in the local repository. Another alternative is to use a repository manager. You can then proxy in all the remote repositories (as well as getting a number of other benefits like being able to block out certain artifacts or repositories), and Maven can get them all from there. It is easier to search for a given artifact's source repository in this case (or you may no longer need to do so, depending on your reason now). - Brett On 20/04/2008, Kedar Mhaswade <[EMAIL PROTECTED]> wrote: > Is there a shorthand command (e.g. mvn resolve or something similar) > that tells me which repository a particular artifact comes from, > when a large project has several repositories? > > Thanks, > Kedar > > (Currently, I look at all the repositories (http://...) and > find that out -- this seems quite time-consuming). > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Brett Porter Blog: http://blogs.exist.com/bporter/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
