You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Anatol Pomozov <an...@tut.by> on 2004/10/25 21:12:51 UTC

MavenProxy CGI script

Hello maven-users,

I'm using Maven in my current project and I would say that is great
product which eliminates problems with jar dependecies almost to zero.


So we have central maven repository in intranet where each developer can
get artifacts. I the HOMEDIR developer should set maven.repo.remote property
set as a list of repository urls.

Problem that we have poor internet channel and it slows down maven
startup. I beleive that occures cause a lot of artifacts has no .md5
files. They are absent in ibiblio repository and in local repository
of cause too. And each time maven starts it tries to download files
from remote repository.

So I decide to use Maven-Proxy tool from codehaus which allows
developers team to use single repository.

But when I have tried to install this application I found that
Maven-Proxy is too crude. So I decided to write simple script on PERL
which emulates MavenProxy. Fortunately we have Apache web server under
Windoze and install CGI script is not a problem. See this script in
attachment.

Some clarification. Script do not downloads .md5 file from ibiblio
repository. Config.properties file contains such configurable
parameters as log file, repository list.

Also you need to setup apache. See sniplet from my apache.conf file it
has very simple configuration.


Alias /maven/ "D:/javalib/maven/repository/"

<Directory "D:/javalib/maven/repository">
    Options Indexes MultiViews 
    AllowOverride None
    ErrorDocument 404 /cgi-bin/maven-proxy.pl
</Directory>
ScriptAlias /cgi-bin/maven-proxy.pl "D:/cgi-bin/maven-proxy.pl"



Thats all. Hope it help you in your work.

--anatol

Re: MavenProxy CGI script

Posted by Ben Walding <be...@walding.com>.
"too crude" -  how does it not meet your requirements?

Anatol Pomozov wrote:

>So I decide to use Maven-Proxy tool from codehaus which allows
>developers team to use single repository.
>
>But when I have tried to install this application I found that
>Maven-Proxy is too crude. So I decided to write simple script on PERL
>which emulates MavenProxy. Fortunately we have Apache web server under
>Windoze and install CGI script is not a problem. See this script in
>attachment.
>  
>
There was no script file attached

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