You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Berin Loritsch <bl...@d-haven.org> on 2003/09/02 21:46:38 UTC

Including remote properties

The Avalon team would like to use their distribution heirarchy as a Maven remote
repository.  The only problem is the traffic it forces on the Apache servers.
We would like to incorporate support from the mirrors redirection program to get
things to work properly.

I can (and did) easily create a genereated properties file that is run as a CGI
script on the server to point to the preferred mirror.  The file has the entry
maven.repo.remote=[preferred]/avalon,....

which expands to the desired value.

The snag I ran into has to do with declaring the properties files.  Maven has
the <property> element you can put in the maven.xml file, but the only options
to specify the properties files are "file", "resource", and "env".  That means
that I cannot use that to get the remote properties file.

Is there any workaround I can use?  Is there a plugin that exists to take care
of this type of functionality?



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


Re: Including remote properties

Posted by Berin Loritsch <bl...@d-haven.org>.
Jason van Zyl wrote:

> On Wed, 2003-09-03 at 09:58, Berin Loritsch wrote:
> 
>>Jason van Zyl wrote:
>>
>>
>>>You are just trying to point your maven builds at the mirror cgi script?
> 
> 
> Where's the source for this little puppy and I'll take a look and maybe
> I can get a better grasp on the problem.

If you log into www.apache.org, the script for the CGI portion is here:

/www/avalon.apache.org/maven.cgi
/www/avalon.apache.org/maven.properties

(It uses the same script for the download pages)

The snippet from my maven.xml was like this:

<properties file="http://avalon.apache.org/maven.cgi"/>

Someone suggested using an ANT get before trying to use the properties.

However, if something like this can be made into a plugin--that would be
fantastic!



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


Re: Including remote properties

Posted by Paul Libbrecht <pa...@activemath.org>.
It would be good if this could support the mirroring procedure of 
SourceForge as well.

Paul


On Mercredi, sept 3, 2003, at 16:53 Europe/Paris, Jason van Zyl wrote:

> On Wed, 2003-09-03 at 09:58, Berin Loritsch wrote:
>> Jason van Zyl wrote:
>>
>>> You are just trying to point your maven builds at the mirror cgi 
>>> script?
>
> Where's the source for this little puppy and I'll take a look and maybe
> I can get a better grasp on the problem.
>
>> Yep.
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
> -- 
> jvz.
>
> Jason van Zyl
> jason@zenplex.com
> http://tambora.zenplex.org
>
> In short, man creates for himself a new religion of a rational
> and technical order to justify his work and to be justified in it.
>
>   -- Jacques Ellul, The Technological Society
>
>
> ---------------------------------------------------------------------
> 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: Including remote properties

Posted by Jason van Zyl <jv...@maven.org>.
On Wed, 2003-09-03 at 09:58, Berin Loritsch wrote:
> Jason van Zyl wrote:
> 
> > You are just trying to point your maven builds at the mirror cgi script?

Where's the source for this little puppy and I'll take a look and maybe
I can get a better grasp on the problem.

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

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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


Re: Including remote properties

Posted by Berin Loritsch <bl...@d-haven.org>.
Jason van Zyl wrote:

> On Tue, 2003-09-02 at 15:46, Berin Loritsch wrote:
> 
>>The Avalon team would like to use their distribution heirarchy as a Maven remote
>>repository.  The only problem is the traffic it forces on the Apache servers.
>>We would like to incorporate support from the mirrors redirection program to get
>>things to work properly.
>>
>>I can (and did) easily create a genereated properties file that is run as a CGI
>>script on the server to point to the preferred mirror.  The file has the entry
>>maven.repo.remote=[preferred]/avalon,....
> 
> 
> Sorry I don't quite understand the "generated properties file that is
> run as a CGI script". How is a generated properties file a CGI script?
> Can you not just point the maven.repo.remote value at the normal apache
> cgi mirror script?

No, that's the problem.

The generated properties file is from a CGI script hosted by Apache
infrastructure that points to what it believes is the nearest mirror to
you.

I would like to leverage that, and have the builds pull from the mirrors.



>>The snag I ran into has to do with declaring the properties files.  Maven has
>>the <property> element you can put in the maven.xml file, 
> 
> 
> Do you mean the <properties/> element in project.xml, or using the ant
> <property/> tag in the maven.xml file?

I mean the <property/> tag in the maven.xml file.

>>but the only options
>>to specify the properties files are "file", "resource", and "env".  That means
>>that I cannot use that to get the remote properties file.
> 
> 
> I'm still not exactly sure what you're trying to do but the Jelly util
> tag library has a properties tag that takes a URI.

I am really new to jelly, and I'm kinda shooting in the dark here.  What is
available to help me out here?


>>Is there any workaround I can use?  Is there a plugin that exists to take care
>>of this type of functionality?
> 
> 
> You are just trying to point your maven builds at the mirror cgi script?

Yep.



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


Re: Including remote properties

Posted by Jason van Zyl <jv...@maven.org>.
On Tue, 2003-09-02 at 15:46, Berin Loritsch wrote:
> The Avalon team would like to use their distribution heirarchy as a Maven remote
> repository.  The only problem is the traffic it forces on the Apache servers.
> We would like to incorporate support from the mirrors redirection program to get
> things to work properly.
> 
> I can (and did) easily create a genereated properties file that is run as a CGI
> script on the server to point to the preferred mirror.  The file has the entry
> maven.repo.remote=[preferred]/avalon,....

Sorry I don't quite understand the "generated properties file that is
run as a CGI script". How is a generated properties file a CGI script?
Can you not just point the maven.repo.remote value at the normal apache
cgi mirror script?

> which expands to the desired value.
> 
> The snag I ran into has to do with declaring the properties files.  Maven has
> the <property> element you can put in the maven.xml file, 

Do you mean the <properties/> element in project.xml, or using the ant
<property/> tag in the maven.xml file?

> but the only options
> to specify the properties files are "file", "resource", and "env".  That means
> that I cannot use that to get the remote properties file.

I'm still not exactly sure what you're trying to do but the Jelly util
tag library has a properties tag that takes a URI.

> Is there any workaround I can use?  Is there a plugin that exists to take care
> of this type of functionality?

You are just trying to point your maven builds at the mirror cgi script?

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

Jason van Zyl
jason@zenplex.com
http://tambora.zenplex.org

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.
  
  -- Jacques Ellul, The Technological Society


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