Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
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 
>
> 
> Repository Proxy
> 
> true
> 
>   
> 
> archiva.internal
> http://localhost:8080/archiva/repository/internal/
> 
> 
> true
> 
> 
> false
> 
> 
> 
>   
>
>
>
> If you will create  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]>
> wrote:
>
> > On Thu, Aug 11, 2011 at 12:06 AM, goutham <[hidden 
> > email]>
>
> > 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] >
> 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]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
> --
>  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.
>
>


--
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.

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
Wayne Fay,

The other idea was having Mirror tag point to remote repo. :)
But configuring another repo made the trick.

Thanks for the Help
-Goutham

On Thu, Aug 11, 2011 at 12:41 AM, Wayne Fay [via Maven] <
ml-node+4686902-1392576678-220...@n5.nabble.com> wrote:

>  > Can this be the other way ?
>
> What is "the other way"?
>
> >  central
> >
> > also trying to download the other dependencies(ex:
> > plexus-interactivity-api)  form the same repo which dont exist.
>
> Saying a repo is a "mirror of Central" means that all artifacts which
> do exist in Central must also exist in this mirror. If you don't want
> to actually host all those files and cannot, for whatever reason,
> configure your repo so that it automatically downloads such files on
> demand etc, then you cannot say this repo is a mirror of Central.
> Instead, you must configure it as simply another repository in
> settings.xml.
>
> Wayne
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  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-tp4685594p4686902.html
>  To unsubscribe from Help:Calling plugin from a remote repository, click
> here.
>
>


--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691821.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-11 Thread goutham
hey Barrie

I dint read completely the suggested sources. I am in short of time so read
few which help in picking up artifact's from repository.

Yes i agree with your statement of checking remote repo only is bad idea , i
missed the point "Any released artifact NEVER changes" .

Thanks for the help :)


--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4691812.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-10 Thread Daivish Shah
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 


Repository Proxy

true

  

archiva.internal
http://localhost:8080/archiva/repository/internal/


true


false



  



If you will create  then it will only look for defined repository
only. It will not look for remote in this case.


I hope it helps.

Thanks,
daivish.



On Wed, Aug 10, 2011 at 4:35 PM, Barrie Treloar  wrote:

> On Thu, Aug 11, 2011 at 12:06 AM, goutham 
> 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] <
> > ml-node+4685646-210393254-220...@n5.nabble.com> 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: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Help:Calling plugin from a remote repository

2011-08-10 Thread Barrie Treloar
On Thu, Aug 11, 2011 at 12:06 AM, goutham  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] <
> ml-node+4685646-210393254-220...@n5.nabble.com> 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: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Help:Calling plugin from a remote repository

2011-08-10 Thread Wayne Fay
> Can this be the other way ?

What is "the other way"?

>      central
>
> also trying to download the other dependencies(ex:
> plexus-interactivity-api)  form the same repo which dont exist.

Saying a repo is a "mirror of Central" means that all artifacts which
do exist in Central must also exist in this mirror. If you don't want
to actually host all those files and cannot, for whatever reason,
configure your repo so that it automatically downloads such files on
demand etc, then you cannot say this repo is a mirror of Central.
Instead, you must configure it as simply another repository in
settings.xml.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Help:Calling plugin from a remote repository

2011-08-10 Thread goutham
Hey

Can this be the other way ?

I used the mirror tags in settings.xml to point to my nexus repository.

   
  my-repo-releases
   Releases
  http://mavenrepo.releases
  central

  

This thing actually worked in invoking the plugin from remote repo but it is
also trying to download the other dependencies(ex:
plexus-interactivity-api)  form the same repo which dont exist.



On Wed, Aug 10, 2011 at 9:42 PM, Wayne Fay [via Maven] <
ml-node+4686394-143768512-220...@n5.nabble.com> 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
>
> Maven always tries to use the local repo first when resolving things.
> So if you want to use version 1.2.3 of a plugin, and it is available
> locally, it will not check the remote repo no matter what you want it
> to do.
>
> The only way you can "force" the plugin to look remote would be:
> 1) delete the local copy of the plugin before running the build
> 2) use a snapshot version of the plugin and specify the update policy
> for the remote repo to "always"
>
> Wayne
>
> -
> To unsubscribe, e-mail: [hidden 
> email]
> For additional commands, e-mail: [hidden 
> email]
>
>
>
> --
>  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-tp4685594p4686394.html
>  To unsubscribe from Help:Calling plugin from a remote repository, click
> here.
>
>


--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686692.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-10 Thread Wayne Fay
> 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

Maven always tries to use the local repo first when resolving things.
So if you want to use version 1.2.3 of a plugin, and it is available
locally, it will not check the remote repo no matter what you want it
to do.

The only way you can "force" the plugin to look remote would be:
1) delete the local copy of the plugin before running the build
2) use a snapshot version of the plugin and specify the update policy
for the remote repo to "always"

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Help:Calling plugin from a remote repository

2011-08-10 Thread goutham
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] <
ml-node+4685646-210393254-220...@n5.nabble.com> 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
>
> On Wed, Aug 10, 2011 at 14:10, goutham <[hidden 
> email]>
> wrote:
>
> > Hi,
> > Usually we call a plugin(ex:maven project with a mojo) using command
> > " mvn ::: " which is in local
> > repository.
> >
> > What is the command which specifies it to look in my nexus repository?
> >
> >
> > Thank you in advance
> > -Goutham
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685594.html
> > Sent from the Maven - Users mailing list archive at Nabble.com.
> >
> > -
> > To unsubscribe, e-mail: [hidden 
> > email]
> > For additional commands, e-mail: [hidden 
> > email]
> >
> >
>
>
> --
>  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-tp4685594p4685646.html
>  To unsubscribe from Help:Calling plugin from a remote repository, click
> here.
>
>


--
View this message in context: 
http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4686013.html
Sent from the Maven - Users mailing list archive at Nabble.com.

Re: Help:Calling plugin from a remote repository

2011-08-10 Thread Anders Hammar
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

On Wed, Aug 10, 2011 at 14:10, goutham  wrote:

> Hi,
> Usually we call a plugin(ex:maven project with a mojo) using command
> " mvn ::: " which is in local
> repository.
>
> What is the command which specifies it to look in my nexus repository?
>
>
> Thank you in advance
> -Goutham
>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Help-Calling-plugin-from-a-remote-repository-tp4685594p4685594.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>