You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Kim Goings <sm...@mac.com> on 2004/08/06 21:27:33 UTC

local copy of remote repository

I'm currently working at a site where developers are not allowed to 
download anything to their workstations (directly or indirectly) 
without permission.  In order to get approval to use Maven, I need to 
build a local copy of the ibiblio repository.

Has anyone else had to do this?  Have any automation you'd be willing 
to share?  I have a couple approaches for automating it, but I'd be 
ecstatic if someone else had already written something I could reuse.

Thanks,
Kim


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


Re: local copy of remote repository

Posted by John Casey <jd...@commonjava.org>.
one low-tech, pre-built way to do it would be to use wget (linux
utility) or something like that, and point it at
http://www.ibiblio.org/maven. That should simply do a traversal of the
webserver's directory and retrieve the artifacts stored there...

You probably don't need all of it, though, so I'd probably run a build
of all your projects in some open environment (allows you to d/l), and
copy the resulting cached local repo to your internal web/file server.
Then, everyone's ~/build.properties file should be changed to have
something like:

maven.repo.remote=http://my.internal.server/maven

or, using a fileserver:

maven.repo.local=/path/to/maven/libs

I'd probably choose the first option, since it most closely reflects
maven's "natural" environment, and therefore is less likely to
experience funny bugs.

hope this rambling helps...

-john

On Fri, 2004-08-06 at 15:27, Kim Goings wrote:
> I'm currently working at a site where developers are not allowed to 
> download anything to their workstations (directly or indirectly) 
> without permission.  In order to get approval to use Maven, I need to 
> build a local copy of the ibiblio repository.
> 
> Has anyone else had to do this?  Have any automation you'd be willing 
> to share?  I have a couple approaches for automating it, but I'd be 
> ecstatic if someone else had already written something I could reuse.
> 
> Thanks,
> Kim
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
-- 
John Casey
jdcasey@commonjava.org
CommonJava Open Components Project
http://www.commonjava.org


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


Re: local copy of remote repository

Posted by Jörg Schaible <jo...@gmx.de>.
Kim Goings wrote:

> I'm currently working at a site where developers are not allowed to
> download anything to their workstations (directly or indirectly)
> without permission.  In order to get approval to use Maven, I need to
> build a local copy of the ibiblio repository.
> 
> Has anyone else had to do this?  Have any automation you'd be willing
> to share?  I have a couple approaches for automating it, but I'd be
> ecstatic if someone else had already written something I could reuse.

You might use maven-proxy.codehaus.org. Configuring this tool, every
developer accesses the proxy and the proxy will fetch things from the web.
So it's just one server that needs the ability ...

- Jörg


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


Re: local copy of remote repository

Posted by Kim Goings <sm...@mac.com>.
Thanks for the tips everyone.



On Aug 6, 2004, at 8:18 PM, Tim Reilly wrote:

> Jorg's suggestion to use maven-proxy would be more efficient,
> since you probably only want what you're using.
>
> But if you can't do that then;
> rsync is another option according to:
> ibiblio FAQ - How do I mirror something on ibiblio?:
> http://www.ibiblio.org/faq/?sid=1#7
>
>
> hth
> -TR
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>


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


RE: local copy of remote repository

Posted by Tim Reilly <ti...@consultant.com>.
Jorg's suggestion to use maven-proxy would be more efficient,
since you probably only want what you're using.

But if you can't do that then;
rsync is another option according to:
ibiblio FAQ - How do I mirror something on ibiblio?:
http://www.ibiblio.org/faq/?sid=1#7


hth
-TR

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