sorry, I don't know if there is a simple way of doing that. Something I
think that could work is defining a local repo for a given profile. making
the profile activated by a property, and setting the property in the pom. I
don't know if that works, but you may want to try. I hope this helps you

On 3/5/06, Artamonov, Juri <[EMAIL PROTECTED]> wrote:
>
> Miguel, thank you for reply, but look at my previous e-mail.
>
> > home/.m2 and specify this in pom.xml not in settings.xml?
> Not in settings.xml.
>
> The goal to have specifyed local reposiory in pom.xml. Is it possible?
>
> -----Original Message-----
> From: Miguel Griffa [mailto:[EMAIL PROTECTED]
> Sent: Sunday, March 05, 2006 10:09 AM
> To: Maven Users List
> Subject: Re: Re: Repository specifying
>
>
> yes, change the location of your local repository in settings.xml
>
> On 3/4/06, Artamonov, Juri <[EMAIL PROTECTED]> wrote:
> >
> > >but all resources go to your local repository: home/.m2 unless
> > overriden in settings.xml.
> >
> > Is there any way to tell maven to download jars to folder I want, not
> > home/.m2 and specify this in pom.xml not in settings.xml?
> >
> > Thanks in advance,
> >                                  Juri.
> >
> > -----Original Message-----
> > From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sergio Carabetta
> > Sent: Friday, March 03, 2006 7:21 PM
> > To: [email protected]
> > Subject: Re: Repository specifying
> >
> >
> > Artamonov, Juri <jartamonov <at> fusionone.com> writes:
> >
> > >
> > > Hi All,
> > >
> > > Could you please tell how correctly specify maven in project's pom
> > > to download and use for the build plugins from my repository.
> > >
> > > I tried to specify in pom.xml to download only to folder were pom
> > > file
> >
> > > is exists
> > >
> > >  <repositories>
> > >     <repository>
> > >       <id>1</id>
> > >       <url>file:../repository</url>
> > >     </repository>
> > >   </repositories>
> > >
> > > but anyway maven always downloads to home/.m2 folder
> > >
> > > Thanks,
> > >                 Juri.
> > >
> >
> >
> > That section of the pom.xml is for telling maven where to look for
> > plugins or jars (other than the default one ibiblio.org), but all
> > resources go to your
> > local repository: home/.m2 unless overriden in settings.xml.
> >
> > Maven will pick up the right resources from a shared, local repository
>
> > (after downloading what may be missing) so you don't have to worry
> > about duplicating
> > plugins and jars in every project.
> >
> > Hope this helps.
> >
> > Sergio
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Miguel Griffa
> Skype: miguel.griffa
> Y!: m_griffa
> MSN: [EMAIL PROTECTED]
> Cell: 15-62519355
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Miguel Griffa
Skype: miguel.griffa
Y!: m_griffa
MSN: [EMAIL PROTECTED]
Cell: 15-62519355

Reply via email to