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]

Reply via email to