On Thu, Aug 11, 2011 at 5:22 AM, Daivish Shah [via Maven] < ml-node+4687779-706532986-220...@n5.nabble.com> wrote:
> You have to create Profile for that.. > > If you will put following entry in your settings.xml file it will first > look > at the remote repository and then it will look for your local repository. > Basically you need to create <profile> > > <profile> > <id>Repository Proxy</id> > <activation> > <activeByDefault>true</activeByDefault> > </activation> > <repositories> > <repository> > <id>archiva.internal</id> > <url>http://localhost:8080/archiva/repository/internal/ > </url> > <releases> > <enabled>true</enabled> > </releases> > <snapshots> > <enabled>false</enabled> > </snapshots> > </repository> > </repositories> > </profile> > > > > If you will create <mirror> then it will only look for defined repository > only. It will not look for remote in this case. > > > I hope it helps. > Yup , profile tag made the trick. Thanks for the help =) ~Goutham > > Thanks, > daivish. > > > > On Wed, Aug 10, 2011 at 4:35 PM, Barrie Treloar <[hidden > email]<http://user/SendEmail.jtp?type=node&node=4687779&i=0>> > wrote: > > > On Thu, Aug 11, 2011 at 12:06 AM, goutham <[hidden > > email]<http://user/SendEmail.jtp?type=node&node=4687779&i=1>> > > > wrote: > > > I want it to restrict to the remote repo only. It should not look into > > local > > > repo , at least first it have to look in remote and then go for local > > > > > > On Wed, Aug 10, 2011 at 6:02 PM, Anders Hammar [via Maven] < > > > [hidden email] <http://user/SendEmail.jtp?type=node&node=4687779&i=2>> > wrote: > > > > > >> Short answer: it's the same command > > >> > > >> somewhat longer answer: Maven will first look in your local repo. If > not > > >> found there, it will look in the configured remote repos (and download > > > to > > >> your local repo if found). > > >> > > >> Maybe reading some of the first chapters in some Maven book will give > > you a > > >> > > >> better idea on how Maven works. You'll find two free books here [1]. > > >> > > >> /Anders > > >> > > >> [1] http://www.sonatype.com/Support/Books > > > > Did you go and read the suggested sources? > > > > I don't undetstand why you would want to check remote repo only. > > Any released artifact NEVER changes, so if its in your local repo its > > identical to what would be on the remote repo. > > This saves you networks connection and download times, which is a good > > thing. > > > > As Wayne points out, you can always delete ~/.m2/repository (or > > specific parts of it) with no issues. > > Maven will just re-download the versions again. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=4687779&i=3> > > For additional commands, e-mail: [hidden > > email]<http://user/SendEmail.jtp?type=node&node=4687779&i=4> > > > > > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4687779.html > To unsubscribe from Help:Calling plugin from a remote repository, click > here<http://maven.40175.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4685594&code=Z291dGhhbS52YXNpcmVkZGlAZ21haWwuY29tfDQ2ODU1OTR8MTY3OTUzMTU3NQ==>. > > -- View this message in context: http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691827.html Sent from the Maven - Users mailing list archive at Nabble.com.