Hi Julien,
There are multiple ways to achieve that. Do you wish to create a local
archiva for test use, or an enterprise scale archiva hosted over intranet
and make it available to more than one systems for development? It is worth
noting that Archiva is designed to proxy the artifacts into your local .m2
repository from Maven central repository or any other remote repository
through Proxy connectors via Managed Repositories, and cache these
artifacts. You can disable remote repository proxying and have a controlled,
locked down repository where you can manually upload artifacts either
through UI or programatically.

There are few key things you might want to look:
Archiva UI - proxy connectors, Managed repositories, user & role to access
the repository
Local Maven settings.xml - should have <mirrors>, <servers> and
<repositories> tag.

The book I would suggest worth reading Apache Maven 2 Implementation -
http://www.packtpub.com/apache-maven-2-effective-implementations/book

This books gives lot of ideas in implementing & using Archiva to suit
development, very useful when I had to setup Archiva for a large scale
development env.



On Tue, Jul 19, 2011 at 1:13 PM, Julien Martin <[email protected]> wrote:

> Hello Soumen and thanks for your reply,
> What I don't understand is what happens when I install a new artefact into
> my .m2 repository. The change is not going to be mirrored in the copy will
> it? Or maybe I don't understand the logic of repo managers?
> J.
>
> 2011/7/19 Soumen Trivedi <[email protected]>
>
> > Hello,
> > One way to put all your local .m2 repository content is to copy from
> > ~/.m2/repository to
> > ${archiva-install-dir}/data/repository/${managed-repository-name}/
> >
> > ${archiva-install-dir} is the directory path to you Archiva installation,
> > ${managed-repository-name} is the name of the managed repository under
> > which
> > you wish to copy all your m2 repository
> > If you do not have a managed repository, you can create one using the
> > Archiva UI.
> >
> > Once the copy is done, you can force Archiva d/b scan on the managed
> > repository.
> >
> > Hope this helps!
> >
> > On Tue, Jul 19, 2011 at 10:29 AM, Julien Martin <[email protected]>
> wrote:
> >
> > > Hello,
> > > I am new to Archiva which I have successfully installed and I would
> like
> > to
> > > know how to add my local "~/.m2" repository to Archiva if that makes
> > sense
> > > at all.
> > > Can anyone please help?
> > > Thanks in advance,
> > > Julien.
> > >
> >
> >
> >
> > --
> > Thanks & Regards,
> > Soumen Trivedi
> > Email: [email protected]
> >
>



-- 
Thanks & Regards,
Soumen Trivedi
Email: [email protected]

Reply via email to