You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ben Walding <be...@walding.com> on 2004/02/25 02:25:16 UTC

Re: [MAVEN-PROXY] repository proxy local-repo.copy

The wiki was (I've updated it) a little misleading. 

* SNAPSHOTs are not updated - I'm not 100% sure how I want to handle 
this at present
* That repo.local-repo.copy thing is a new feature I'm currently 
adding.  Still wrestling with doing it cleanly and what it means.

I should be pushing out a release in the next week that will be more 
useful in a corporate setting where you want to release internal 
projects to the proxy cleanly.

Cheers,

Ben

Kalaveshi, Adrian wrote:

>I'm using the jars from the wiki.  I'm only trying to exercise the
>repo.local-repo.copy property -- should this work?  I'd like it to *not*
>copy jars from the repository to the proxy when they're requested from the
>proxy.
>
>There's a bullet item on the wiki that says:
>
>  
>
>>It is maven aware - eg. SNAPSHOTs can be given a schedule for removal etc.
>>    
>>
>
>What does this mean?  Should a SNAPSHOT in the proxy automatically be
>updated when a new one becomes available in the repository?  I'm not
>currently seeing this behavior.
>
>-----Original Message-----
>From: Ben Walding [mailto:ben@walding.com]
>Sent: Tuesday, February 24, 2004 4:42 PM
>To: Maven Users List
>Subject: Re: repository proxy local-repo.copy
>
>
>Probably best not to use maven-proxy from CVS at the moment as I'm in 
>the middle of trying to work out a sane way to do all this.
>
>Just use the config and jars from the wiki.
>
>Kalaveshi, Adrian wrote:
>
>  
>
>>Greetings --
>>
>>My maven-proxy.properties file contains the following:
>>
>>repo.local.store=/export/repository-proxy
>>repo.local-repo.url=file://///export/repository
>>repo.local-repo.copy=false
>>
>>As you can see, the proxy and the repository exist on the same machine.  I
>>can't get the repo.local-repo.copy property to work.  Every time a request
>>it made to the proxy for a jar that is available on the repository, it gets
>>copied over.  This seems to cause problems when  using SNAPSHOT versions of
>>jars.  The jars in /export/repository-proxy never get updated.  Is this a
>>bug?  Am I missing something?
>>
>>Thanks,
>>-adrian-
>>
>>---------------------------------------------------------------------
>>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
>
>---------------------------------------------------------------------
>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: [MAVEN-PROXY] repository proxy local-repo.copy

Posted by Ben Walding <be...@walding.com>.
I arbitrarily called the thing that has been in the dist directory 0.1.  
I'll be releasing 0.2 tonight.

This doesn't look like an issue with maven-proxy (it's not even getting 
that far it seems)  - it looks like an issue with dependency resolution 
and overrides.

However, heres what you could do

1) Version IAIK - iaik_javax_crypto-1.0.jar (everything has a version, 
even if it is just a date)
2) Load that into your proxy repo (or, if using maven-proxy 0.2, load it 
into your company-repo - more details on that on the wiki later)
  /var/tmp/proxy-repo/IAIK/jars/iaik_javax_crypto-1.0.jar
3) Update your dep to include a version
<dependency>
 <groupId>IAIK</groupId>
 <artifactId>iaik_javax_crypto</artifactId>
<version>1.0</version>
</dependency>
4) Disable jar overrides for IAIK




Svetlin Stanchev wrote:

> Your work is much appreciated, I am willing to test it and report as 
> soon as it is released :-) (BTW I see a 0.1 release already, I took a 
> look and I guess it is not the release you are talking about yet)!
>
> On a similar note: I've noticed also that overridden dependencies are 
> not getting downloaded from the proxy. I am using Maven RC1 and the 
> SNAPSHOT proxy. Is this expected behaviour of the proxy or the remote 
> repos?
>
> Here is my setup on the proxy:
> ---
> $ ls -R /var/tmp/proxy-repo/
> /var/tmp/proxy-repo/:
> commons-logging  IAIK
>
> /var/tmp/proxy-repo/commons-logging:
> jars
>
> /var/tmp/proxy-repo/commons-logging/jars:
> commons-logging-1.0.jar  commons-logging-1.0.jar.md5
>
> /var/tmp/proxy-repo/IAIK:
> jars
>
> /var/tmp/proxy-repo/IAIK/jars:
> iaik_javax_crypto.jar
> ---
>
> Im my project.properties I have:
> ---
> maven.jar.override = on
> maven.repo.remote = http://192.168.0.178:7777
> maven.jar.iaik_javax_crypto = 
> ${maven.repo.remote}/IAIK/jars/iaik_javax_crypto.jar
> ---
>
> In project.xml I have:
> ---
> <dependency>
>  <groupId>IAIK</groupId>
>  <artifactId>iaik_javax_crypto</artifactId>
> </dependency>
> ---
>
> Here the output:
> ---
> Attempting to download commons-logging-1.0.jar.
> ......
> Attempting to download iaik_javax_crypto-.jar.
> WARNING: Failed to download iaik_javax_crypto-.jar.
>
> BUILD FAILED
> File...... file:/M:/
> Element... m:reactor
> Line...... 16
> Column.... 31
> The build cannot continue because of the following unsatisfied 
> dependency:
>
> iaik_javax_crypto-.jar (no download url specified)
> ---
>
> If the overriding points to a local dir, it works fine, naturally.
> Thanks again,



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


Re: [MAVEN-PROXY] repository proxy local-repo.copy

Posted by Svetlin Stanchev <sv...@acm.org>.
Your work is much appreciated, I am willing to test it and report as 
soon as it is released :-) (BTW I see a 0.1 release already, I took a 
look and I guess it is not the release you are talking about yet)!

On a similar note: I've noticed also that overridden dependencies are 
not getting downloaded from the proxy. I am using Maven RC1 and the 
SNAPSHOT proxy. Is this expected behaviour of the proxy or the remote 
repos?

Here is my setup on the proxy:
---
$ ls -R /var/tmp/proxy-repo/
/var/tmp/proxy-repo/:
commons-logging  IAIK

/var/tmp/proxy-repo/commons-logging:
jars

/var/tmp/proxy-repo/commons-logging/jars:
commons-logging-1.0.jar  commons-logging-1.0.jar.md5

/var/tmp/proxy-repo/IAIK:
jars

/var/tmp/proxy-repo/IAIK/jars:
iaik_javax_crypto.jar
---

Im my project.properties I have:
---
maven.jar.override = on
maven.repo.remote = http://192.168.0.178:7777
maven.jar.iaik_javax_crypto = 
${maven.repo.remote}/IAIK/jars/iaik_javax_crypto.jar
---

In project.xml I have:
---
<dependency>
  <groupId>IAIK</groupId>
  <artifactId>iaik_javax_crypto</artifactId>
</dependency>
---

Here the output:
---
Attempting to download commons-logging-1.0.jar.
......
Attempting to download iaik_javax_crypto-.jar.
WARNING: Failed to download iaik_javax_crypto-.jar.

BUILD FAILED
File...... file:/M:/
Element... m:reactor
Line...... 16
Column.... 31
The build cannot continue because of the following unsatisfied dependency:

iaik_javax_crypto-.jar (no download url specified)
---

If the overriding points to a local dir, it works fine, naturally.
Thanks again,
-- 
Svetlin


Ben Walding wrote:

> The wiki was (I've updated it) a little misleading.
> * SNAPSHOTs are not updated - I'm not 100% sure how I want to handle 
> this at present
> * That repo.local-repo.copy thing is a new feature I'm currently 
> adding.  Still wrestling with doing it cleanly and what it means.
> 
> I should be pushing out a release in the next week that will be more 
> useful in a corporate setting where you want to release internal 
> projects to the proxy cleanly.


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